You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by Ben Laurie <be...@hyperreal.com> on 1997/01/12 17:53:16 UTC
cvs commit: apache/src http_protocol.c mod_access.c
ben 97/01/12 08:53:15
Modified: src http_protocol.c mod_access.c
Log:
Add HTTP/1.0 response forcing, and access control via environment variables.
Revision Changes Path
1.89 +6 -1 apache/src/http_protocol.c
Index: http_protocol.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_protocol.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -C3 -r1.88 -r1.89
*** http_protocol.c 1997/01/10 19:28:52 1.88
--- http_protocol.c 1997/01/12 16:53:13 1.89
***************
*** 878,890 ****
void basic_http_header (request_rec *r)
{
BUFF *fd = r->connection->client;
if (r->assbackwards) return;
if (!r->status_line)
r->status_line = status_lines[index_of_response(r->status)];
! bvputs(fd, SERVER_PROTOCOL, " ", r->status_line, "\015\012", NULL);
bvputs(fd,"Date: ",gm_timestr_822 (r->pool, r->request_time),
"\015\012", NULL);
bvputs(fd,"Server: ", SERVER_VERSION, "\015\012", NULL);
--- 878,895 ----
void basic_http_header (request_rec *r)
{
BUFF *fd = r->connection->client;
+ char *t;
if (r->assbackwards) return;
if (!r->status_line)
r->status_line = status_lines[index_of_response(r->status)];
! if(table_get(r->subprocess_env,"force-response-1.0"))
! t="HTTP/1.0";
! else
! t=SERVER_PROTOCOL;
! bvputs(fd, t, " ", r->status_line, "\015\012", NULL);
bvputs(fd,"Date: ",gm_timestr_822 (r->pool, r->request_time),
"\015\012", NULL);
bvputs(fd,"Server: ", SERVER_VERSION, "\015\012", NULL);
1.15 +4 -0 apache/src/mod_access.c
Index: mod_access.c
===================================================================
RCS file: /export/home/cvs/apache/src/mod_access.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -C3 -r1.14 -r1.15
*** mod_access.c 1997/01/01 18:10:24 1.14
--- mod_access.c 1997/01/12 16:53:14 1.15
***************
*** 185,190 ****
--- 185,194 ----
for (i = 0; i < a->nelts; ++i) {
if (!(mmask & ap[i].limited))
continue;
+
+ if (!strncmp(ap[i].from,"env=",4) && table_get(r->subprocess_env,ap[i].from+4))
+ return 1;
+
if (ap[i].from && !strcmp(ap[i].from, "user-agents")) {
char * this_agent = table_get(r->headers_in, "User-Agent");
int j;
Re: cvs commit: apache/src http_protocol.c mod_access.c
Posted by Marc Slemko <ma...@znep.com>.
Is this documented anywhere yet?
On Sun, 12 Jan 1997, Ben Laurie wrote:
> ben 97/01/12 08:53:15
>
> Modified: src http_protocol.c mod_access.c
> Log:
> Add HTTP/1.0 response forcing, and access control via environment variables.
>