0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-15 12:40:25 +00:00

Fix Vary header, was wrongly named Variances previously

This commit is contained in:
Loïc Hoguin 2012-10-11 20:44:53 +02:00
parent e128e935af
commit 642a8f73c9
2 changed files with 4 additions and 4 deletions

View file

@ -470,7 +470,7 @@ variances(Req, State=#state{content_types_p=CTP,
resource_exists(Req3, State2);
[[<<", ">>, H]|Variances5] ->
Req4 = cowboy_req:set_resp_header(
<<"Variances">>, [H|Variances5], Req3),
<<"Vary">>, [H|Variances5], Req3),
resource_exists(Req4, State2)
end.