You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@excalibur.apache.org by vg...@apache.org on 2005/07/28 22:40:59 UTC

svn commit: r225876 - /excalibur/trunk/components/sourceresolve/src/java/org/apache/excalibur/source/impl/URLSource.java

Author: vgritsenko
Date: Thu Jul 28 13:40:56 2005
New Revision: 225876

URL: http://svn.apache.org/viewcvs?rev=225876&view=rev
Log:
remove 304: it is another form of redirect, as 301 and 307 are

Modified:
    excalibur/trunk/components/sourceresolve/src/java/org/apache/excalibur/source/impl/URLSource.java

Modified: excalibur/trunk/components/sourceresolve/src/java/org/apache/excalibur/source/impl/URLSource.java
URL: http://svn.apache.org/viewcvs/excalibur/trunk/components/sourceresolve/src/java/org/apache/excalibur/source/impl/URLSource.java?rev=225876&r1=225875&r2=225876&view=diff
==============================================================================
--- excalibur/trunk/components/sourceresolve/src/java/org/apache/excalibur/source/impl/URLSource.java (original)
+++ excalibur/trunk/components/sourceresolve/src/java/org/apache/excalibur/source/impl/URLSource.java Thu Jul 28 13:40:56 2005
@@ -172,7 +172,7 @@
                     try 
                     {
                         final int statusCode = ((HttpURLConnection)m_connection).getResponseCode();
-                        if ( statusCode == 200 || statusCode == 303 || statusCode == 304 )
+                        if ( statusCode == 200 || statusCode == 304 )
                         {
                             m_exists = true;
                         } 



---------------------------------------------------------------------
To unsubscribe, e-mail: scm-unsubscribe@excalibur.apache.org
For additional commands, e-mail: scm-help@excalibur.apache.org