diff options
Diffstat (limited to 'network/thttpd/patches/2.25b/thttpd-2.25b-use-Status-header.patch')
-rw-r--r-- | network/thttpd/patches/2.25b/thttpd-2.25b-use-Status-header.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/network/thttpd/patches/2.25b/thttpd-2.25b-use-Status-header.patch b/network/thttpd/patches/2.25b/thttpd-2.25b-use-Status-header.patch new file mode 100644 index 0000000000..6aaae5a5d9 --- /dev/null +++ b/network/thttpd/patches/2.25b/thttpd-2.25b-use-Status-header.patch @@ -0,0 +1,12 @@ +diff -Naur thttpd-2.25b.orig/libhttpd.c thttpd-2.25b/libhttpd.c +--- thttpd-2.25b.orig/libhttpd.c 2007-10-14 10:09:11.000000000 +0000 ++++ thttpd-2.25b/libhttpd.c 2007-10-14 10:21:37.000000000 +0000 +@@ -3279,7 +3279,7 @@ + cp += strspn( cp, " \t" ); + status = atoi( cp ); + } +- if ( ( cp = strstr( headers, "Location:" ) ) != (char*) 0 && ++ else if ( ( cp = strstr( headers, "Location:" ) ) != (char*) 0 && + cp < br && + ( cp == headers || *(cp-1) == '\012' ) ) + status = 302; |