mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Sorry, previous commit was not ok.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@357044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -461,6 +461,9 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg,
|
|||||||
const char *ptr;
|
const char *ptr;
|
||||||
apr_uint16_t num_headers;
|
apr_uint16_t num_headers;
|
||||||
int i;
|
int i;
|
||||||
|
#if defined(AS400) || defined(_OSD_POSIX)
|
||||||
|
char *tmp;
|
||||||
|
#endif
|
||||||
|
|
||||||
rc = ajp_msg_get_uint16(msg, &status);
|
rc = ajp_msg_get_uint16(msg, &status);
|
||||||
|
|
||||||
@@ -474,9 +477,9 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg,
|
|||||||
rc = ajp_msg_get_string(msg, &ptr);
|
rc = ajp_msg_get_string(msg, &ptr);
|
||||||
if (rc == APR_SUCCESS) {
|
if (rc == APR_SUCCESS) {
|
||||||
#if defined(AS400) || defined(_OSD_POSIX)
|
#if defined(AS400) || defined(_OSD_POSIX)
|
||||||
char *tmp = ap_pstrdup(r->pool, ptr);
|
tmp = ap_pstrdup(r->pool, ptr);
|
||||||
ap_xlate_proto_from_ascii(tmp, strlen(tmp));
|
ap_xlate_proto_from_ascii(tmp, strlen(tmp));
|
||||||
ptr = tmp
|
ptr = tmp;
|
||||||
#endif
|
#endif
|
||||||
r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr);
|
r->status_line = apr_psprintf(r->pool, "%d %s", status, ptr);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user