You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ja...@apache.org on 2016/02/05 23:24:39 UTC
svn commit: r1728748 - /httpd/httpd/trunk/server/protocol.c
Author: jailletc36
Date: Fri Feb 5 22:24:38 2016
New Revision: 1728748
URL: http://svn.apache.org/viewvc?rev=1728748&view=rev
Log:
Remove now useless apr_pstrdup.
Modified:
httpd/httpd/trunk/server/protocol.c
Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=1728748&r1=1728747&r2=1728748&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Fri Feb 5 22:24:38 2016
@@ -614,7 +614,7 @@ static int read_request_line(request_rec
r->status = HTTP_BAD_REQUEST;
}
r->proto_num = HTTP_VERSION(1,0);
- r->protocol = apr_pstrdup(r->pool, "HTTP/1.0");
+ r->protocol = "HTTP/1.0";
return 0;
}
} while ((len <= 0) && (--num_blank_lines >= 0));
@@ -634,7 +634,7 @@ static int read_request_line(request_rec
if (!*r->method || !*uri) {
r->status = HTTP_BAD_REQUEST;
r->proto_num = HTTP_VERSION(1,0);
- r->protocol = apr_pstrdup(r->pool, "HTTP/1.0");
+ r->protocol = "HTTP/1.0";
return 0;
}
@@ -648,7 +648,7 @@ static int read_request_line(request_rec
ap_parse_uri(r, uri);
if (r->status != HTTP_OK) {
r->proto_num = HTTP_VERSION(1,0);
- r->protocol = apr_pstrdup(r->pool, "HTTP/1.0");
+ r->protocol = "HTTP/1.0";
return 0;
}
@@ -687,7 +687,7 @@ static int read_request_line(request_rec
"Invalid protocol '%s'", r->protocol);
if (enforce_strict) {
r->proto_num = HTTP_VERSION(1,0);
- r->protocol = apr_pstrdup(r->pool, "HTTP/1.0");
+ r->protocol = "HTTP/1.0";
r->connection->keepalive = AP_CONN_CLOSE;
r->status = HTTP_BAD_REQUEST;
return 0;