I have a bunch of web services that return some content, sometimes > 100kb. Unfortunately for the bigger results, I get the partial response with Transfer-encoding: Chunked.
Is there any way to disable chunking?
That's my method:
@RequestMapping(value = "/form/{repository}/{objectId}", method = RequestMethod.GET, headers="()")
@ResponseBody
public FormHelper getFormConfig(HttpServletRequest req, HttpServletResponse resp, @PathVariable String repository,
@PathVariable("objectId") String objectId) throws Exception
And that's the Spring XML config:
<import resource="classpath*:context-aaa.xml" />
<mvc:annotation-driven />
<bean
class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping">
<property name="useDefaultSuffixPattern" value="false" />
</bean>
I had the same issue with Jersey library so I rewrote the project into Spring MVC, but it's still there...
Thanks in advance for any help. Mariusz