Browse Source

Use http_headers() type in cowboy_http_req:headers/1.

Loïc Hoguin 14 years ago
parent
commit
bb800ee0d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/cowboy_http_req.erl

+ 1 - 1
src/cowboy_http_req.erl

@@ -136,7 +136,7 @@ header(Name, Req, Default) ->
 	end.
 	end.
 
 
 -spec headers(Req::#http_req{})
 -spec headers(Req::#http_req{})
-	-> {list({Name::atom() | string(), Value::string()}), Req::#http_req{}}.
+	-> {Headers::http_headers(), Req::#http_req{}}.
 headers(Req) ->
 headers(Req) ->
 	{Req#http_req.headers, Req}.
 	{Req#http_req.headers, Req}.