diff options
author | Loïc Hoguin <[email protected]> | 2013-05-15 14:49:44 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-05-15 14:49:44 +0200 |
commit | c582335c5b67beebe6ca15409ad04ed24c60a05a (patch) | |
tree | e8006023a17ddaf2c6222b34bf86a7c202a9402e | |
parent | ce7981deb3eca9e53aa41691ab03409b99861048 (diff) | |
download | cowboy-c582335c5b67beebe6ca15409ad04ed24c60a05a.tar.gz cowboy-c582335c5b67beebe6ca15409ad04ed24c60a05a.tar.bz2 cowboy-c582335c5b67beebe6ca15409ad04ed24c60a05a.zip |
The return value of cowboy_req:peer/1 is never undefined
-rw-r--r-- | src/cowboy_req.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_req.erl b/src/cowboy_req.erl index 5b8157d..aa96225 100644 --- a/src/cowboy_req.erl +++ b/src/cowboy_req.erl @@ -222,7 +222,7 @@ version(Req) -> %% @doc Return the peer address and port number of the remote host. -spec peer(Req) - -> {undefined | {inet:ip_address(), inet:port_number()}, Req} + -> {{inet:ip_address(), inet:port_number()}, Req} when Req::req(). peer(Req) -> {Req#http_req.peer, Req}. |