diff options
author | Loïc Hoguin <[email protected]> | 2012-09-20 06:22:51 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2012-09-21 08:54:57 +0200 |
commit | 8497c8bbcdcfd8754c500e65557ee09d9bd1bed0 (patch) | |
tree | 76abb26e328b916addb95db4778f0666a1a7d4fb /test/rest_forbidden_resource.erl | |
parent | f6791b008ac8ccaa331bfbae9afb69af5bf36a7a (diff) | |
download | cowboy-8497c8bbcdcfd8754c500e65557ee09d9bd1bed0.tar.gz cowboy-8497c8bbcdcfd8754c500e65557ee09d9bd1bed0.tar.bz2 cowboy-8497c8bbcdcfd8754c500e65557ee09d9bd1bed0.zip |
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.
Diffstat (limited to 'test/rest_forbidden_resource.erl')
-rw-r--r-- | test/rest_forbidden_resource.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rest_forbidden_resource.erl b/test/rest_forbidden_resource.erl index d34e7b2..63aac7e 100644 --- a/test/rest_forbidden_resource.erl +++ b/test/rest_forbidden_resource.erl @@ -10,7 +10,7 @@ rest_init(Req, [Forbidden]) -> {ok, Req, Forbidden}. allowed_methods(Req, State) -> - {['GET', 'HEAD', 'POST'], Req, State}. + {[<<"GET">>, <<"HEAD">>, <<"POST">>], Req, State}. forbidden(Req, State=true) -> {true, Req, State}; |