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

Fix a broken test case in the rfc7540 suite

This commit is contained in:
Loïc Hoguin 2017-11-29 17:52:09 +01:00
parent 0246d9a4e6
commit bec9a43d50
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -146,7 +146,7 @@ http_upgrade_reject_bad_http2_settings_header(Config) ->
"Connection: Upgrade, HTTP2-Settings\r\n"
"Upgrade: h2c\r\n"
%% We send a full SETTINGS frame on purpose.
"HTTP2-Settings: ", base64:encode(cow_http2:settings(#{})), "\r\n",
"HTTP2-Settings: ", base64:encode(iolist_to_binary(cow_http2:settings(#{}))), "\r\n",
"\r\n"]),
{ok, <<"HTTP/1.1 400">>} = gen_tcp:recv(Socket, 12, 1000),
ok.