From 8497c8bbcdcfd8754c500e65557ee09d9bd1bed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 20 Sep 2012 06:22:51 +0200 Subject: Don't use decode_packet/3 for parsing the request-line First step in making all methods and header names binaries to get rid of many inconsistencies caused by decode_packet/3. Methods are all binary now. Note that since they are case sensitive, the usual methods become <<"GET">>, <<"POST">> and so on. --- test/rest_nodelete_resource.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/rest_nodelete_resource.erl') diff --git a/test/rest_nodelete_resource.erl b/test/rest_nodelete_resource.erl index 8c83422..9f9670c 100644 --- a/test/rest_nodelete_resource.erl +++ b/test/rest_nodelete_resource.erl @@ -6,7 +6,7 @@ init(_Transport, _Req, _Opts) -> {upgrade, protocol, cowboy_rest}. allowed_methods(Req, State) -> - {['GET', 'HEAD', 'DELETE'], Req, State}. + {[<<"GET">>, <<"HEAD">>, <<"DELETE">>], Req, State}. content_types_provided(Req, State) -> -- cgit v1.2.3