diff options
author | Tanaka Akira <akr@fsij.org> | 2019-07-11 09:18:41 +0900 |
---|---|---|
committer | Tanaka Akira <akr@fsij.org> | 2019-07-11 09:18:41 +0900 |
commit | 50d85436f8f194aa78cd0e819471fe20767a5993 (patch) | |
tree | 18ce459623d72613567ace52ded44498b7a08c20 /proc.c | |
parent | d57ce99b7d187eb3af7749a056edeea443da93f6 (diff) | |
download | ruby-50d85436f8f194aa78cd0e819471fe20767a5993.tar.gz |
WEBrick::HTTPResponse create tempfile if required.
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.
Diffstat (limited to 'proc.c')
0 files changed, 0 insertions, 0 deletions