0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

Fix the ignore_requests_after_response_connection_close test

It was not working at all.
This commit is contained in:
Loïc Hoguin 2018-05-18 15:17:07 +02:00
parent 95710da617
commit 6c04875111
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -1504,7 +1504,8 @@ ignore_requests_after_response_connection_close(Config) ->
doc("The server must not process any request after " doc("The server must not process any request after "
"sending the \"close\" connection option. (RFC7230 6.6)"), "sending the \"close\" connection option. (RFC7230 6.6)"),
Self = self(), Self = self(),
#{code := 200} = do_raw(Config, [ Client = raw_open(Config),
ok = raw_send(Client, [
[ [
"GET / HTTP/1.1\r\n" "GET / HTTP/1.1\r\n"
"Host: localhost\r\n" "Host: localhost\r\n"