Browse Source

Fix a broken test case in the rfc7540 suite

Loïc Hoguin 7 years ago
parent
commit
bec9a43d50
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/rfc7540_SUITE.erl

+ 1 - 1
test/rfc7540_SUITE.erl

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