diff options
author | Loïc Hoguin <[email protected]> | 2017-07-19 14:06:42 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2017-07-19 14:06:42 +0200 |
commit | c41928fd607d35521a2b8de74e23529142841663 (patch) | |
tree | 3d590aa9cce12d102ba5702176ec1c720ddbad20 /docs/en/cowboy/2.0/guide/broken_clients.asciidoc | |
parent | e5c6ca9243fa213aa2a0b0d1395c7384549a06c9 (diff) | |
download | ninenines.eu-c41928fd607d35521a2b8de74e23529142841663.tar.gz ninenines.eu-c41928fd607d35521a2b8de74e23529142841663.tar.bz2 ninenines.eu-c41928fd607d35521a2b8de74e23529142841663.zip |
Update docs
Diffstat (limited to 'docs/en/cowboy/2.0/guide/broken_clients.asciidoc')
-rw-r--r-- | docs/en/cowboy/2.0/guide/broken_clients.asciidoc | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/docs/en/cowboy/2.0/guide/broken_clients.asciidoc b/docs/en/cowboy/2.0/guide/broken_clients.asciidoc index 17bb892f..1d1a51a9 100644 --- a/docs/en/cowboy/2.0/guide/broken_clients.asciidoc +++ b/docs/en/cowboy/2.0/guide/broken_clients.asciidoc @@ -46,16 +46,17 @@ implementations. There is no easy solution for this other than forking the project and editing the `cowboy_protocol` file directly. -=== Chunked transfer-encoding - -Sometimes an HTTP client advertises itself as HTTP/1.1 but -does not support chunked transfer-encoding. This is invalid -behavior, as HTTP/1.1 clients are required to support it. - -A simple workaround exists in these cases. By changing the -Req object response state to `waiting_stream`, Cowboy will -understand that it must use the identity transfer-encoding -when replying, just like if it was an HTTP/1.0 client. - -[source,erlang] -Req2 = cowboy_req:set(resp_state, waiting_stream). +// @todo This currently has no equivalent in Cowboy 2.0. +// === Chunked transfer-encoding +// +// Sometimes an HTTP client advertises itself as HTTP/1.1 but +// does not support chunked transfer-encoding. This is invalid +// behavior, as HTTP/1.1 clients are required to support it. +// +// A simple workaround exists in these cases. By changing the +// Req object response state to `waiting_stream`, Cowboy will +// understand that it must use the identity transfer-encoding +// when replying, just like if it was an HTTP/1.0 client. +// +// [source,erlang] +// Req2 = cowboy_req:set(resp_state, waiting_stream). |