Browse Source

The semantics for a missing 'If-Match' aren't the same as '*'

Loïc Hoguin 13 years ago
parent
commit
7acaa996ed
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/cowboy_http_req.erl

+ 2 - 2
src/cowboy_http_req.erl

@@ -207,8 +207,8 @@ parse_header_default('Accept-Charset') -> undefined;
 parse_header_default('Accept-Encoding') -> undefined;
 parse_header_default('Accept-Language') -> undefined;
 parse_header_default('Connection') -> [];
-parse_header_default('If-Match') -> '*';
-parse_header_default('If-None-Match') -> '*';
+parse_header_default('If-Match') -> undefined;
+parse_header_default('If-None-Match') -> undefined;
 parse_header_default(_Name) -> undefined.
 
 %% @doc Semantically parse headers.