aboutsummaryrefslogtreecommitdiffstats
path: root/include/http.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2012-08-30 23:11:24 +0200
committerLoïc Hoguin <[email protected]>2012-09-10 12:25:57 +0200
commit6fa734b487102ed1436fd61598d51817a46a9b75 (patch)
tree1f5f57e3d0ea566fd355fdd915d9b4706a9c2233 /include/http.hrl
parente17e18668d8645eaffe4da64a63e3162c99fe2d3 (diff)
downloadcowboy-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.hrl3
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(),