aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 1857f59e9..9e2cb89d6 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -815,8 +815,12 @@ static ssize_t ngx_http_read_request_header(ngx_http_request_t *r)
return NGX_AGAIN;
}
+#if 1
+ ngx_http_ssl_read(r);
+#else
n = ngx_recv(r->connection, r->header_in->last,
r->header_in->end - r->header_in->last);
+#endif
if (n == NGX_AGAIN) {
if (!r->header_timeout_set) {