]> granicus.if.org Git - apache/commitdiff
get proxy CONNECT to work on EBCDIC machines
authorJeff Trawick <trawick@apache.org>
Tue, 7 May 2002 15:06:32 +0000 (15:06 +0000)
committerJeff Trawick <trawick@apache.org>
Tue, 7 May 2002 15:06:32 +0000 (15:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94997 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_connect.c

index 4888411a28b579b0f198071fa82163562e88e5fe..cbc9d7736ca12103aff33a0a97e78826444c5291 100644 (file)
@@ -276,9 +276,11 @@ int ap_proxy_connect_handler(request_rec *r, proxy_server_conf *conf,
                     "proxy: CONNECT: Returning 200 OK Status");
         nbytes = apr_snprintf(buffer, sizeof(buffer),
                              "HTTP/1.0 200 Connection Established" CRLF);
+        ap_xlate_proto_to_ascii(buffer, nbytes);
         apr_send(client_socket, buffer, &nbytes);
         nbytes = apr_snprintf(buffer, sizeof(buffer),
                              "Proxy-agent: %s" CRLF CRLF, ap_get_server_version());
+        ap_xlate_proto_to_ascii(buffer, nbytes);
         apr_send(client_socket, buffer, &nbytes);
 #if 0
         /* This is safer code, but it doesn't work yet.  I'm leaving it