aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2014-06-30 17:49:36 +0200
committerLoïc Hoguin <[email protected]>2014-06-30 17:49:36 +0200
commit4eee5737004df8cf63071c410eb4f060cb2dbaa2 (patch)
tree102e9e2d9905359e8aa5306b90b90fb2446f422f /test
parent8cc353114eea7113878463a934baf068ee255cb5 (diff)
downloadcowboy-4eee5737004df8cf63071c410eb4f060cb2dbaa2.tar.gz
cowboy-4eee5737004df8cf63071c410eb4f060cb2dbaa2.tar.bz2
cowboy-4eee5737004df8cf63071c410eb4f060cb2dbaa2.zip
Return 422 instead of 400 when AcceptResource returns false
422 is undefined for HTTP and interpreted as 400.
Diffstat (limited to 'test')
-rw-r--r--test/http_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/http_SUITE.erl b/test/http_SUITE.erl
index 0e115e0..5888421 100644
--- a/test/http_SUITE.erl
+++ b/test/http_SUITE.erl
@@ -749,7 +749,7 @@ rest_options_default(Config) ->
rest_patch(Config) ->
Tests = [
{204, [{<<"content-type">>, <<"text/plain">>}], <<"whatever">>},
- {422, [{<<"content-type">>, <<"text/plain">>}], <<"false">>},
+ {400, [{<<"content-type">>, <<"text/plain">>}], <<"false">>},
{400, [{<<"content-type">>, <<"text/plain">>}], <<"halt">>},
{415, [{<<"content-type">>, <<"application/json">>}], <<"bad_content_type">>}
],