summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@fsij.org>2019-07-11 09:18:41 +0900
committerTanaka Akira <akr@fsij.org>2019-07-11 09:18:41 +0900
commit50d85436f8f194aa78cd0e819471fe20767a5993 (patch)
tree18ce459623d72613567ace52ded44498b7a08c20 /gc.c
parentd57ce99b7d187eb3af7749a056edeea443da93f6 (diff)
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 'gc.c')
0 files changed, 0 insertions, 0 deletions