freebsd-ports/www/mod_auth_remote/files/patch-mod_auth_remote.c
Erwin Lansing 5dda08d708 - Fix malformed request which prevents from authenticate agaist Zope servers
Notice by: Morten W. Petersen" <morten@nidelven-it.no>
        Obtained from: srp@grex.org (author)

- Port changes:
        - use USE_APACHE
        - use PORTDOCS
        - fix install/deinstall behaviour with package install

PR:		60030
Submitted by:	maintainer
2003-12-09 12:17:58 +00:00

21 lines
758 B
C

--- mod_auth_remote.c.orig Tue Jan 21 16:44:53 2003
+++ mod_auth_remote.c Sun Dec 7 22:42:36 2003
@@ -141,8 +141,8 @@
itemp = strlen(user_pass);
encoded = apr_palloc(r->pool, (((itemp+2)/3)*4)+2);
apr_base64_encode(encoded, user_pass, itemp);
- req_b = apr_pstrcat(r->pool, "HEAD ", conf->remote_uri," HTTP/1.0 ",
- "\nAuthorization: Basic ",encoded,CRLF,CRLF,NULL);
+ req_b = apr_pstrcat(r->pool, "HEAD ", conf->remote_uri," HTTP/1.0",
+ CRLF,"Authorization: Basic ",encoded,CRLF,CRLF,NULL);
bytes = strlen(req_b);
val = apr_send(socket, req_b, &bytes);
if(val != APR_SUCCESS)
@@ -194,4 +194,4 @@
NULL,
auth_remote_cmds,
register_hooks
-};
\ No newline at end of file
+};