diff 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
line wrap: on
line diff
--- a/proxy_request_buffering_ssl.t
+++ b/proxy_request_buffering_ssl.t
@@ -78,16 +78,16 @@ http {
 
         ssl_certificate_key localhost.key;
         ssl_certificate localhost.crt;
-        proxy_request_buffering off;
 
         location /preread {
             client_body_buffer_size 2k;
             add_header X-Body "$request_body";
             proxy_pass http://127.0.0.1:8082/;
+            proxy_request_buffering off;
         }
 
         location / {
-            return 204;
+            proxy_pass http://127.0.0.1:8080/discard;
         }
         location /404 { }
     }