зеркало из https://github.com/github/ruby.git
50d85436f8
WEBrick::HTTPProxyServer implementes HTTP proxy using WEBrick and Net::HTTP. WEBrick accepts HTTP/1.0 clients and Net::HTTP uses always HTTP/1.1. However HTTP/1.1 supports chunked transfer coding HTTP/1.0 doesn't. Chunked transfer coding doesn't require that content-length before the content is sent. But non-chunked transfer coding require content-length before the content is sent. So, when HTTP/1.0 clients connects WEBrick::HTTPProxyServer and origin server returns chunked response, WEBrick::HTTPProxyServer needs to store whole content to know the length of it. This patch do it using tempfile. |
||
---|---|---|
.. | ||
httpauth | ||
httpservlet | ||
.document | ||
accesslog.rb | ||
cgi.rb | ||
compat.rb | ||
config.rb | ||
cookie.rb | ||
htmlutils.rb | ||
httpauth.rb | ||
httpproxy.rb | ||
httprequest.rb | ||
httpresponse.rb | ||
https.rb | ||
httpserver.rb | ||
httpservlet.rb | ||
httpstatus.rb | ||
httputils.rb | ||
httpversion.rb | ||
log.rb | ||
server.rb | ||
ssl.rb | ||
utils.rb | ||
version.rb | ||
webrick.gemspec |