Permalink
Browse files

Improved compatibility with HTTP 1.0 (redirect)

(contributed by Frederic Planchon <frederic@planchon.org>)
  • Loading branch information...
1 parent 29eba00 commit ecfa2748a683055ad1ed0cfbd8683e6c77704e70 @manuelkasper manuelkasper committed Feb 17, 2009
Showing with 5 additions and 1 deletion.
  1. +4 −0 CHANGELOG
  2. +1 −1 src/mod_auth_pubtkt.c
View
@@ -1,3 +1,7 @@
+- Improved compatibility with HTTP 1.0 (redirect)
+ (contributed by Frederic Planchon <frederic@planchon.org>).
+
+
v0.5 (01/22/2009)
-----------------
- Fixed parsing of cookies with escaped spaces ('+')
@@ -714,7 +714,7 @@ static int redirect(request_rec *r, char *location) {
}
apr_table_setn(r->headers_out, "Location", url);
- return HTTP_TEMPORARY_REDIRECT;
+ return (r->proto_num >= HTTP_VERSION(1,1)) ? HTTP_TEMPORARY_REDIRECT : HTTP_MOVED_TEMPORARILY;
}
/* ----------------------------------------------------------------------- */

0 comments on commit ecfa274

Please sign in to comment.