This commit is contained in:
Andrew Clayton 2025-10-13 14:54:10 +05:30 committed by GitHub
commit 56cf1e8307
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -1860,11 +1860,11 @@ ngx_http_proxy_process_status_line(ngx_http_request_t *r)
}
#endif
r->http_version = NGX_HTTP_VERSION_9;
u->state->status = NGX_HTTP_OK;
u->state->status = NGX_HTTP_UPSTREAM_INVALID_HEADER;
u->headers_in.connection_close = 1;
return NGX_OK;
return NGX_HTTP_UPSTREAM_INVALID_HEADER;
}
if (u->state && u->state->status == 0) {