Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improved compatibility with HTTP 1.0 (redirect)

(contributed by Frederic Planchon <frederic@planchon.org>)
  • Loading branch information...
commit ecfa2748a683055ad1ed0cfbd8683e6c77704e70 1 parent 29eba00
@manuelkasper manuelkasper authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 CHANGELOG
  2. +1 −1  src/mod_auth_pubtkt.c
View
4 CHANGELOG
@@ -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 ('+')
View
2  src/mod_auth_pubtkt.c
@@ -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.
Something went wrong with that request. Please try again.