changcheng / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Headers set after content send #453

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

What version of the product are you using? On what operating system?
1.4.6

Please provide any additional information below.

class WroManager line 220
is:
IOUtils.write(cacheValue.getRawContent(), os, configuration.getEncoding());
response.setContentLength(cacheValue.getRawContent().length());

but content length header should be set first.

Original issue reported on code.google.com by jabo...@gmail.com on 4 Jun 2012 at 11:16

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 4 Jun 2012 at 11:30

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.4.x

Original comment by alex.obj...@gmail.com on 4 Jun 2012 at 12:30

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 4 Jun 2012 at 12:30