diff options
author | Loïc Hoguin <[email protected]> | 2012-08-27 13:28:57 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-08-27 13:28:57 +0200 |
commit | d3dcaf109b225b1384fad5b17dbae9c4888c40ea (patch) | |
tree | 171cabef2c5aec776631d7a5d14ab687c563e38b /src/cowboy_http_static.erl | |
parent | 9e2622becb4d1a37d410f484a14ef32101e560ab (diff) | |
download | cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.tar.gz cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.tar.bz2 cowboy-d3dcaf109b225b1384fad5b17dbae9c4888c40ea.zip |
Rename cowboy_http_req to cowboy_req
Diffstat (limited to 'src/cowboy_http_static.erl')
-rw-r--r-- | src/cowboy_http_static.erl | 4 |
1 files changed, 2 insertions, 2 deletions
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}. |