File tree 1 file changed +9
-8
lines changed 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ __DATA__
20
20
--- stream_server_config
21
21
proxy_pass mockbin.com:443;
22
22
proxy_ssl on;
23
- --- stream_request
24
- GET /
25
- --- stream_response_like: ^{"message":"no Route matched with those values"}$
23
+ proxy_ssl_server_name on;
24
+ --- stream_request eval
25
+ "GET / HTTP/1.0\r\nHost: mockbin.com\r\n\r\n"
26
+ --- stream_response_like: ^HTTP/1.1 200 OK
26
27
--- no_error_log
27
28
[error]
28
29
32
33
--- stream_server_config
33
34
proxy_pass mockbin.com:80;
34
35
proxy_ssl off;
35
- --- stream_request
36
- GET /
37
- --- stream_response_like: ^{"message":"no Route matched with those values"}$
36
+ --- stream_request eval
37
+ " GET / HTTP/1.0\r\nHost: mockbin.com\r\n\r\n"
38
+ --- stream_response_like: ^HTTP/1.1 200 OK
38
39
--- no_error_log
39
40
[error]
40
41
53
54
54
55
assert(tls.disable_proxy_ssl())
55
56
}
56
- --- stream_request
57
- GET /
57
+ --- stream_request eval
58
+ " GET / HTTP/1.0\r\nHost: mockbin.com\r\n\r\n"
58
59
--- stream_response_like: ^.+400 The plain HTTP request was sent to HTTPS port.+$
59
60
--- no_error_log
60
61
[error]
You can’t perform that action at this time.
0 commit comments