Mercurial > hg > nginx-tests
comparison proxy_request_buffering_ssl.t @ 545:dbf8fb0f3d30
Tests: fixed unbuffered request body tests.
In particular, made sure that the whole request body is read on backend.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Wed, 08 Apr 2015 20:16:40 +0300 |
parents | a36757f66c75 |
children | fa48f8a195a3 |
comparison
equal
deleted
inserted
replaced
544:e82bbe71f50c | 545:dbf8fb0f3d30 |
---|---|
76 listen 127.0.0.1:8081 ssl; | 76 listen 127.0.0.1:8081 ssl; |
77 server_name localhost; | 77 server_name localhost; |
78 | 78 |
79 ssl_certificate_key localhost.key; | 79 ssl_certificate_key localhost.key; |
80 ssl_certificate localhost.crt; | 80 ssl_certificate localhost.crt; |
81 proxy_request_buffering off; | |
82 | 81 |
83 location /preread { | 82 location /preread { |
84 client_body_buffer_size 2k; | 83 client_body_buffer_size 2k; |
85 add_header X-Body "$request_body"; | 84 add_header X-Body "$request_body"; |
86 proxy_pass http://127.0.0.1:8082/; | 85 proxy_pass http://127.0.0.1:8082/; |
86 proxy_request_buffering off; | |
87 } | 87 } |
88 | 88 |
89 location / { | 89 location / { |
90 return 204; | 90 proxy_pass http://127.0.0.1:8080/discard; |
91 } | 91 } |
92 location /404 { } | 92 location /404 { } |
93 } | 93 } |
94 } | 94 } |
95 | 95 |