0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00
cowboy/test/handlers
Loïc Hoguin 83bd8bc935
Fix two edge cases for cowboy_req:stream_body
Sending data of size 0 with the fin flag set resulted in nothing
being sent to the client and still considering the response to
be finished for HTTP/1.1.

For both HTTP/1.1 and HTTP/2, the final chunk of body that is
sent automatically by Cowboy at the end of a response that the
user did not properly terminate was not passing through stream
handlers. This resulted in issues like compression being incorrect.

Some tests still fail under 20.1.3. They are due to recent zlib
changes and should be fixed in a future patch release. Unfortunately
it does not seem to be any 20.1 version that is safe to use for
Cowboy, although some will work better than others.
2017-11-01 15:33:10 +00:00
..
asterisk_h.erl Initial commit with connection/streams 2016-03-05 20:20:42 +01:00
compress_h.erl Add experimental cowboy_compress_h stream handler 2017-01-22 10:50:39 +01:00
default_h.erl Add a metrics test when the handler didn't send anything 2017-10-21 13:12:36 +01:00
echo_h.erl Handle expect: 100-continue request headers 2017-10-30 16:21:25 +00:00
hello_h.erl Initial commit with connection/streams 2016-03-05 20:20:42 +01:00
input_crash_h.erl Add rfc7230 test suite and update others to recent Gun 2015-05-05 19:59:37 +03:00
long_polling_h.erl Fix broken tests in loop_handler_SUITE 2017-10-31 16:49:48 +00:00
loop_handler_body_h.erl Allow passing options to sub protocols 2017-02-18 18:26:20 +01:00
loop_handler_timeout_h.erl Add the idle_timeout HTTP/1.1 protocol option 2017-05-03 17:44:00 +02:00
multipart_h.erl Update the multipart reading interface 2016-08-10 15:09:04 +02:00
resp_h.erl Fix two edge cases for cowboy_req:stream_body 2017-11-01 15:33:10 +00:00
stream_handler_h.erl Fix a unused warning 2017-10-31 16:50:17 +00:00
ws_init_h.erl Allow websocket_init/1 to reply/close/hibernate 2016-08-15 19:21:38 +02:00
ws_terminate_h.erl Introduce the req_filter Websocket option 2017-05-28 20:19:39 +02:00