From d3dcaf109b225b1384fad5b17dbae9c4888c40ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 27 Aug 2012 13:28:57 +0200 Subject: Rename cowboy_http_req to cowboy_req --- src/cowboy_http_static.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cowboy_http_static.erl') diff --git a/src/cowboy_http_static.erl b/src/cowboy_http_static.erl index d204e5a..d8e10a0 100644 --- a/src/cowboy_http_static.erl +++ b/src/cowboy_http_static.erl @@ -231,7 +231,7 @@ rest_init(Req, Opts) -> end, {Filepath, Req1} = case lists:keyfind(file, 1, Opts) of {_, Filepath2} -> {filepath_path(Filepath2), Req}; - false -> cowboy_http_req:path_info(Req) + false -> cowboy_req:path_info(Req) end, State = case check_path(Filepath) of error -> @@ -320,7 +320,7 @@ content_types_provided(Req, #state{filepath=Filepath, -spec file_contents(#http_req{}, #state{}) -> tuple(). file_contents(Req, #state{filepath=Filepath, fileinfo={ok, #file_info{size=Filesize}}}=State) -> - {ok, Transport, Socket} = cowboy_http_req:transport(Req), + {ok, Transport, Socket} = cowboy_req:transport(Req), Writefile = content_function(Transport, Socket, Filepath), {{stream, Filesize, Writefile}, Req, State}. -- cgit v1.2.3