You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2003/03/15 23:41:46 UTC
cvs commit: xml-security/c/src/utils/winutils XSECBinHTTPURIInputStream.cpp
blautenb 2003/03/15 14:41:46
Modified: c/src/utils/unixutils XSECBinHTTPURIInputStream.cpp
c/src/utils/winutils XSECBinHTTPURIInputStream.cpp
Log:
Add 301 (permanently moved) support
Revision Changes Path
1.2 +7 -3 xml-security/c/src/utils/unixutils/XSECBinHTTPURIInputStream.cpp
Index: XSECBinHTTPURIInputStream.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/utils/unixutils/XSECBinHTTPURIInputStream.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- XSECBinHTTPURIInputStream.cpp 12 Feb 2003 11:21:03 -0000 1.1
+++ XSECBinHTTPURIInputStream.cpp 15 Mar 2003 22:41:46 -0000 1.2
@@ -71,6 +71,9 @@
* $Id$
*
* $Log$
+ * Revision 1.2 2003/03/15 22:41:46 blautenb
+ * Add 301 (permanently moved) support
+ *
* Revision 1.1 2003/02/12 11:21:03 blautenb
* UNIX generic URI resolver
*
@@ -270,7 +273,8 @@
}
int httpResponse = atoi(p);
- if (httpResponse == 302) {
+
+ if (httpResponse == 302 || httpResponse = 301) {
//Once grows, should use a switch
char redirectBuf[256];
int q;
1.3 +6 -3 xml-security/c/src/utils/winutils/XSECBinHTTPURIInputStream.cpp
Index: XSECBinHTTPURIInputStream.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/utils/winutils/XSECBinHTTPURIInputStream.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XSECBinHTTPURIInputStream.cpp 13 Feb 2003 10:19:43 -0000 1.2
+++ XSECBinHTTPURIInputStream.cpp 15 Mar 2003 22:41:46 -0000 1.3
@@ -73,6 +73,9 @@
* $Id$
*
* $Log$
+ * Revision 1.3 2003/03/15 22:41:46 blautenb
+ * Add 301 (permanently moved) support
+ *
* Revision 1.2 2003/02/13 10:19:43 blautenb
* Updated Xerces exceptions to Xsec exception
*
@@ -458,8 +461,8 @@
int httpResponse = atoi(p);
- // Check for redirect
- if (httpResponse == 302)
+ // Check for redirect or permanently moved
+ if (httpResponse == 302 || httpResponse == 301)
{
//Once grows, should use a switch
char redirectBuf[256];