diff options
author | Loïc Hoguin <[email protected]> | 2011-05-04 11:29:06 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2011-05-04 11:29:06 +0200 |
commit | bb800ee0d93da6bf4725002c7a27a2ae6263bb22 (patch) | |
tree | 729539c8f37a0fce44b8df7d876504190d684cc2 | |
parent | 849ec73eb83a78fc67e8b0f7401594db446c9ca4 (diff) | |
download | cowboy-bb800ee0d93da6bf4725002c7a27a2ae6263bb22.tar.gz cowboy-bb800ee0d93da6bf4725002c7a27a2ae6263bb22.tar.bz2 cowboy-bb800ee0d93da6bf4725002c7a27a2ae6263bb22.zip |
Use http_headers() type in cowboy_http_req:headers/1.
-rw-r--r-- | src/cowboy_http_req.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_http_req.erl b/src/cowboy_http_req.erl index 649f41d..569bb9b 100644 --- a/src/cowboy_http_req.erl +++ b/src/cowboy_http_req.erl @@ -136,7 +136,7 @@ header(Name, Req, Default) -> end. -spec headers(Req::#http_req{}) - -> {list({Name::atom() | string(), Value::string()}), Req::#http_req{}}. + -> {Headers::http_headers(), Req::#http_req{}}. headers(Req) -> {Req#http_req.headers, Req}. |