aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Houghton <[email protected]>2014-10-01 09:55:51 -0400
committerAndrew Houghton <[email protected]>2014-10-01 09:55:51 -0400
commitd1898b969eda270bad7eaa59f7f92da4e531446e (patch)
tree222485cc6121269a68b29b9c561ca32279dbe3bc
parent0dc063ab7d94edb37c61f821b5d8e4c2da7f8ff1 (diff)
downloadcowboy-d1898b969eda270bad7eaa59f7f92da4e531446e.tar.gz
cowboy-d1898b969eda270bad7eaa59f7f92da4e531446e.tar.bz2
cowboy-d1898b969eda270bad7eaa59f7f92da4e531446e.zip
Req#http_req.peer can be 'undefined'; update spec accordingly
-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 a6e2de5..757ca83 100644
--- a/src/cowboy_req.erl
+++ b/src/cowboy_req.erl
@@ -189,7 +189,7 @@ method(Req) ->
version(Req) ->
Req#http_req.version.
--spec peer(req()) -> {inet:ip_address(), inet:port_number()}.
+-spec peer(req()) -> {inet:ip_address(), inet:port_number()} | undefined.
peer(Req) ->
Req#http_req.peer.