0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Merge branch 'fix_peer_spec' of git://github.com/aahoughton/cowboy

This commit is contained in:
Loïc Hoguin 2014-10-03 15:07:32 +03:00
commit e0c8e9ad5c

View file

@ -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.