aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-10-11 20:44:53 +0200
committerLoïc Hoguin <[email protected]>2012-10-11 20:44:53 +0200
commit642a8f73c9fef1fb8ce524169d619a80a6797ab0 (patch)
treed81668055df569ec68f822669da2f3703c9148b2 /src/cowboy_rest.erl
parente128e935af1950b665885f369819a58db88bf61e (diff)
downloadcowboy-642a8f73c9fef1fb8ce524169d619a80a6797ab0.tar.gz
cowboy-642a8f73c9fef1fb8ce524169d619a80a6797ab0.tar.bz2
cowboy-642a8f73c9fef1fb8ce524169d619a80a6797ab0.zip
Fix Vary header, was wrongly named Variances previously
Diffstat (limited to 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index 2f9faa8..c0decbd 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -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.