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 --- test/http_handler_init_shutdown.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/http_handler_init_shutdown.erl') diff --git a/test/http_handler_init_shutdown.erl b/test/http_handler_init_shutdown.erl index ac63b44..c26fa97 100644 --- a/test/http_handler_init_shutdown.erl +++ b/test/http_handler_init_shutdown.erl @@ -5,12 +5,12 @@ -export([init/3, handle/2, terminate/2]). init({_Transport, http}, Req, _Opts) -> - {ok, Req2} = cowboy_http_req:reply(<<"666 Init Shutdown Testing">>, + {ok, Req2} = cowboy_req:reply(<<"666 Init Shutdown Testing">>, [{'Connection', <<"close">>}], Req), {shutdown, Req2, undefined}. handle(Req, State) -> - {ok, Req2} = cowboy_http_req:reply(200, [], "Hello world!", Req), + {ok, Req2} = cowboy_req:reply(200, [], "Hello world!", Req), {ok, Req2, State}. terminate(_Req, _State) -> -- cgit v1.2.3