aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-07-12 18:55:09 +0200
committerLoïc Hoguin <[email protected]>2017-07-12 18:55:09 +0200
commit3c185859451c2d94051c7c7d26d23a6f210eb579 (patch)
tree6449a59f34b265867ba71b5f8e30545304ce8ea0 /doc
parentacc5fed589439de41c83c260c48937ee34e95b8a (diff)
downloadcowboy-3c185859451c2d94051c7c7d26d23a6f210eb579.tar.gz
cowboy-3c185859451c2d94051c7c7d26d23a6f210eb579.tar.bz2
cowboy-3c185859451c2d94051c7c7d26d23a6f210eb579.zip
Remove any mention of the waiting_stream hack
Diffstat (limited to 'doc')
-rw-r--r--doc/src/guide/broken_clients.asciidoc27
1 files changed, 14 insertions, 13 deletions
diff --git a/doc/src/guide/broken_clients.asciidoc b/doc/src/guide/broken_clients.asciidoc
index 17bb892..1d1a51a 100644
--- a/doc/src/guide/broken_clients.asciidoc
+++ b/doc/src/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).