aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_req.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/cowboy_req.erl')
-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.