mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-14 12:20:24 +00:00
Comment out the origin_form_reject_if_connect test
We don't implement CONNECT yet so we unconditionally return a 501 for these requests and that makes this test fail.
This commit is contained in:
parent
2f9ab91cdd
commit
95710da617
1 changed files with 10 additions and 9 deletions
|
@ -288,15 +288,16 @@ must_understand_origin_form(Config) ->
|
||||||
"Host: localhost\r\n"
|
"Host: localhost\r\n"
|
||||||
"\r\n").
|
"\r\n").
|
||||||
|
|
||||||
origin_form_reject_if_connect(Config) ->
|
%% @todo Reenable this test once support for CONNECT is added.
|
||||||
doc("origin-form is used when the client does not connect to a proxy, "
|
%origin_form_reject_if_connect(Config) ->
|
||||||
"does not use the CONNECT method and does not issue a site-wide "
|
% doc("origin-form is used when the client does not connect to a proxy, "
|
||||||
"OPTIONS request. (RFC7230 5.3.1)"),
|
% "does not use the CONNECT method and does not issue a site-wide "
|
||||||
#{code := 400, client := Client} = do_raw(Config,
|
% "OPTIONS request. (RFC7230 5.3.1)"),
|
||||||
"CONNECT / HTTP/1.1\r\n"
|
% #{code := 400, client := Client} = do_raw(Config,
|
||||||
"Host: localhost\r\n"
|
% "CONNECT / HTTP/1.1\r\n"
|
||||||
"\r\n"),
|
% "Host: localhost\r\n"
|
||||||
{error, closed} = raw_recv(Client, 0, 1000).
|
% "\r\n"),
|
||||||
|
% {error, closed} = raw_recv(Client, 0, 1000).
|
||||||
|
|
||||||
%% @todo Equivalent test for https.
|
%% @todo Equivalent test for https.
|
||||||
origin_form_tcp_scheme(Config) ->
|
origin_form_tcp_scheme(Config) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue