Wildfly服务器:部分内容和范围请求 [英] Wildfly server:Partial Content and Range Requests
问题描述
有没有办法让wildfly服务器支持http范围标头?
我们正在请求服务器的文件,http get和http标头范围:字节200-400
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"
从apache tomcat服务器提供的文件响应http状态代码206和部分文件内容但wildfly服务器使用http状态代码200和所有文件内容响应相同的请求。由于我们使用大文件,因此传输和搜索文件成为一个问题。
有没有办法让wildfly通过配置,插件,模块或servlet代码支持部分请求?
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?
我愿意接受任何建议。
谢谢。
我们正在使用:wildfly 8.0.1版本
We are using: wildfly 8.0.1 version
推荐答案
对范围请求的支持是已添加在版本1.2中提供(在WildFly中使用的Web服务器)。
Support for range requests was added to undertow(web server used in WildFly) in version 1.2.
WildFly 9中包含的1.2版。
Version 1.2 included in WildFly 9.
WildFly 9 CR1出局,.Final版本将在几天内发布。
WildFly 9 CR1 is out, with .Final version coming in few days.
所以简而言之,升级到WildFly 9
so in short, upgrade to WildFly 9
这篇关于Wildfly服务器:部分内容和范围请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!