aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-11-24 08:21:16 -0800
committerLoïc Hoguin <[email protected]>2012-11-24 08:21:16 -0800
commit74ba41e2393b34b7772c4eeb94df86c46ea05a49 (patch)
treea0b7d47d0a7b9d9fc6670ded72035aceca433df0
parent3e891b712030f480739cc2165641cf29c7376fd8 (diff)
parent8706dd8834cbd74156f973605f09c117d61a8811 (diff)
downloadcowboy-74ba41e2393b34b7772c4eeb94df86c46ea05a49.tar.gz
cowboy-74ba41e2393b34b7772c4eeb94df86c46ea05a49.tar.bz2
cowboy-74ba41e2393b34b7772c4eeb94df86c46ea05a49.zip
Merge pull request #297 from puzza007/master
Correct spelling in rest callback name
-rw-r--r--src/cowboy_rest.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index fd71c63..792d9bd 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -476,7 +476,7 @@ variances(Req, State=#state{content_types_p=CTP,
resource_exists(Req, State) ->
expect(Req, State, resource_exists, true,
- fun if_match_exists/2, fun if_match_musnt_exist/2).
+ fun if_match_exists/2, fun if_match_must_not_exist/2).
if_match_exists(Req, State) ->
case cowboy_req:parse_header(<<"if-match">>, Req) of
@@ -496,7 +496,7 @@ if_match(Req, State, EtagsList) ->
false -> precondition_failed(Req2, State2)
end.
-if_match_musnt_exist(Req, State) ->
+if_match_must_not_exist(Req, State) ->
case cowboy_req:header(<<"if-match">>, Req) of
{undefined, Req2} -> is_put_to_missing_resource(Req2, State);
{_Any, Req2} -> precondition_failed(Req2, State)