Просмотр исходного кода

Fix value for header content-encoding in a test

Not that it matters for the test, but still.
Loïc Hoguin 11 лет назад
Родитель
Сommit
bbe42d9bc5
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      test/http_SUITE_data/http_body_qs.erl

+ 3 - 2
test/http_SUITE_data/http_body_qs.erl

@@ -32,8 +32,9 @@ echo(badlength, Req) ->
 echo(undefined, Req) ->
 	cowboy_req:reply(400, [], <<"Missing echo parameter.">>, Req);
 echo(Echo, Req) ->
-	cowboy_req:reply(200,
-		[{<<"content-encoding">>, <<"utf-8">>}], Echo, Req).
+	cowboy_req:reply(200, [
+		{<<"content-type">>, <<"text/plain; charset=utf-8">>}
+	], Echo, Req).
 
 terminate(_, _, _) ->
 	ok.