yahns Ruby server user/dev discussion
 help / color / mirror / code / Atom feed
* [PATCH 0/2] revenge of the body-less responses
@ 2016-12-14  6:59 Eric Wong
  2016-12-14  6:59 ` [PATCH 1/2] response: do not set chunked header on bodyless responses Eric Wong
  2016-12-14  6:59 ` [PATCH 2/2] proxy_pass: do not chunk on bodyless upstream responses Eric Wong
  0 siblings, 2 replies; 3+ messages in thread
From: Eric Wong @ 2016-12-14  6:59 UTC (permalink / raw)
  To: yahns-public

It's wrong to set "Transfer-Encoding: chunked" on any response
without an entity body.  This confused curl -T- when I triggered
a rare 204 response...  Fortunately, yahns is not used in a
capacity where it's failure would start World War III.

Eric Wong (2):
      response: do not set chunked header on bodyless responses
      proxy_pass: do not chunk on bodyless upstream responses

 lib/yahns/http_response.rb       |  4 ++--
 lib/yahns/proxy_http_response.rb |  2 +-
 test/test_auto_chunk.rb          | 22 +++++++++++++++++++++-
 test/test_proxy_pass.rb          | 33 +++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 4 deletions(-)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-14  6:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-14  6:59 [PATCH 0/2] revenge of the body-less responses Eric Wong
2016-12-14  6:59 ` [PATCH 1/2] response: do not set chunked header on bodyless responses Eric Wong
2016-12-14  6:59 ` [PATCH 2/2] proxy_pass: do not chunk on bodyless upstream responses Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/yahns.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).