From 6fa734b487102ed1436fd61598d51817a46a9b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 30 Aug 2012 23:11:24 +0200 Subject: 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. --- include/http.hrl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/http.hrl') 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(), -- cgit v1.2.3