aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_rest.erl
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 /src/cowboy_rest.erl
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 'src/cowboy_rest.erl')
-rw-r--r--src/cowboy_rest.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cowboy_rest.erl b/src/cowboy_rest.erl
index de12f3f..be2baaf 100644
--- a/src/cowboy_rest.erl
+++ b/src/cowboy_rest.erl
@@ -672,7 +672,7 @@ create_path(Req=#http_req{meta=Meta}, State) ->
State2, 303)
end.
-create_path_location(#http_req{transport=Transport, raw_host=Host,
+create_path_location(#http_req{transport=Transport, host=Host,
port=Port}, Path) ->
TransportName = Transport:name(),
<< (create_path_location_protocol(TransportName))/binary, "://",