Skip to content

Commit 58cdcef

Browse files
committed
Fix bug in StringTransformer that was not propagating the Rewrite event
1 parent e7c4ab7 commit 58cdcef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎transform/src/main/java/org/ocpsoft/rewrite/transform/StringTransformer.java‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public abstract class StringTransformer implements Transformer
3939
public abstract String transform(HttpServletRewrite event, String input);
4040

4141
@Override
42-
public void transform(HttpServletRewrite event, InputStream inputStream, OutputStream outputStream) throws IOException
42+
public void transform(HttpServletRewrite event, InputStream inputStream, OutputStream outputStream)
43+
throws IOException
4344
{
4445

4546
// read input stream and store it in a string
@@ -48,7 +49,7 @@ public void transform(HttpServletRewrite event, InputStream inputStream, OutputS
4849
String input = new String(bos.toByteArray(), UTF8);
4950

5051
// perform internal transformation
51-
String output = transform(null, input);
52+
String output = transform(event, input);
5253

5354
// write result to the output stream
5455
outputStream.write(output.getBytes(UTF8));

0 commit comments

Comments
 (0)