diff options
author | Ian Holsman <ianh@apache.org> | 2002-08-22 17:02:49 +0200 |
---|---|---|
committer | Ian Holsman <ianh@apache.org> | 2002-08-22 17:02:49 +0200 |
commit | 6efc028098dd87d717f41478676e30bc8f8c9ae2 (patch) | |
tree | 5f849a1f38123bdf850bc7d8530f72f313e3d545 /modules | |
parent | remove some remaining NO_DBM_REWRITEMAP cruft from mod_rewrite (diff) | |
download | apache2-6efc028098dd87d717f41478676e30bc8f8c9ae2.tar.xz apache2-6efc028098dd87d717f41478676e30bc8f8c9ae2.zip |
Add A warning when servers don't set their status line
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96484 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules')
-rw-r--r-- | modules/proxy/proxy_http.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/proxy/proxy_http.c b/modules/proxy/proxy_http.c index fe40235005..aa1e08dd7a 100644 --- a/modules/proxy/proxy_http.c +++ b/modules/proxy/proxy_http.c @@ -737,11 +737,18 @@ apr_status_t ap_proxy_http_process_response(apr_pool_t * p, request_rec *r, backasswards = 0; keepchar = buffer[12]; + if (keepchar == '\0') { + ap_log_error(APLOG_MARK, APLOG_WARNING, 0, + r->server, "proxy: bad HTTP/%d.%d status line " + "returned by %s (%s)", major, minor, r->uri, + r->method); + } buffer[12] = '\0'; r->status = atoi(&buffer[9]); buffer[12] = keepchar; r->status_line = apr_pstrdup(p, &buffer[9]); + /* read the headers. */ /* N.B. for HTTP/1.0 clients, we have to fold line-wrapped headers*/ |