illegible protocol args to be rejected, irrespective of the strict toggle as
we expect this to occur with a garbage raw SP embedded in the request URI.
Simplifies the code using the protocol 0.9 sentinal to set up an http/1.0
error response.
String duplication of r1773158 is uninteresting, httpd-2.x has a const protocol
member.
Submitted by: rpluem, wrowe
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1773159 13f79535-47bb-0310-9956-
ffa450edef68
memcpy((char*)r->protocol, "HTTP", 4);
}
else if (r->protocol[0]) {
- r->assbackwards = 0;
- r->proto_num = HTTP_VERSION(1,0);
+ r->proto_num = HTTP_VERSION(0,9);
/* Defer setting the r->protocol string till error msg is composed */
- if (strict && deferred_error == rrl_none)
+ if (deferred_error == rrl_none)
deferred_error = rrl_badprotocol;
- else
- r->protocol = "HTTP/1.0";
}
else {
r->assbackwards = 1;