Wildfly server:Partial Content and Range Requests

左心房为你撑大大i 提交于 2019-12-23 02:31:49

问题


Is there a way for wildfly server support http range header? We are requesting file for server with http get and http header "Range: bytes 200-400"

The files that served from apache tomcat server responds http status code 206 and partial file content but wildfly server responds same request with http status code 200 and all file content. Since we are using big files it becomes a problem to transfer and seek file. Is there any way to make wildfly support partial requests via configuration, plugin, module or a servlet code?

I am open to any suggestions.

Thanks.

We are using: wildfly 8.0.1 version


回答1:


Support for range requests was added to undertow(web server used in WildFly) in version 1.2.

Version 1.2 included in WildFly 9.

WildFly 9 CR1 is out, with .Final version coming in few days.

so in short, upgrade to WildFly 9



来源:https://stackoverflow.com/questions/30383656/wildfly-serverpartial-content-and-range-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!