aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-05-15 14:49:44 +0200
committerLoïc Hoguin <[email protected]>2013-05-15 14:49:44 +0200
commitc582335c5b67beebe6ca15409ad04ed24c60a05a (patch)
treee8006023a17ddaf2c6222b34bf86a7c202a9402e
parentce7981deb3eca9e53aa41691ab03409b99861048 (diff)
downloadcowboy-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.erl2
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}.