diff options
author | Loïc Hoguin <[email protected]> | 2012-08-30 23:11:24 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-09-10 12:25:57 +0200 |
commit | 6fa734b487102ed1436fd61598d51817a46a9b75 (patch) | |
tree | 1f5f57e3d0ea566fd355fdd915d9b4706a9c2233 /include/http.hrl | |
parent | e17e18668d8645eaffe4da64a63e3162c99fe2d3 (diff) | |
download | cowboy-6fa734b487102ed1436fd61598d51817a46a9b75.tar.gz cowboy-6fa734b487102ed1436fd61598d51817a46a9b75.tar.bz2 cowboy-6fa734b487102ed1436fd61598d51817a46a9b75.zip |
Replace cowboy_req:host/1 with cowboy_req:raw_host/1
The latter is much more useful than the former, which ends up
being removed.
Diffstat (limited to 'include/http.hrl')
-rw-r--r-- | include/http.hrl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/http.hrl b/include/http.hrl index 33b8d39..06c21f0 100644 --- a/include/http.hrl +++ b/include/http.hrl @@ -25,9 +25,8 @@ version = {1, 1} :: cowboy_http:version(), peer = undefined :: undefined | {inet:ip_address(), inet:port_number()}, - host = undefined :: undefined | cowboy_dispatcher:tokens(), + host = undefined :: undefined | binary(), host_info = undefined :: undefined | cowboy_dispatcher:tokens(), - raw_host = undefined :: undefined | binary(), port = undefined :: undefined | inet:port_number(), path = undefined :: undefined | '*' | cowboy_dispatcher:tokens(), path_info = undefined :: undefined | cowboy_dispatcher:tokens(), |