gzz-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java


From: Tuukka Hastrup
Subject: [Gzz-commits] storm/org/nongnu/storm/util HTTPProxy.java
Date: Tue, 06 May 2003 14:20:54 -0400

CVSROOT:        /cvsroot/storm
Module name:    storm
Changes by:     Tuukka Hastrup <address@hidden> 03/05/06 14:20:54

Modified files:
        org/nongnu/storm/util: HTTPProxy.java 

Log message:
        clean very slightly

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/storm/storm/org/nongnu/storm/util/HTTPProxy.java.diff?tr1=1.20&tr2=1.21&r1=text&r2=text

Patches:
Index: storm/org/nongnu/storm/util/HTTPProxy.java
diff -u storm/org/nongnu/storm/util/HTTPProxy.java:1.20 
storm/org/nongnu/storm/util/HTTPProxy.java:1.21
--- storm/org/nongnu/storm/util/HTTPProxy.java:1.20     Tue May  6 13:08:42 2003
+++ storm/org/nongnu/storm/util/HTTPProxy.java  Tue May  6 14:20:54 2003
@@ -80,17 +80,19 @@
        protected HTTPResponse doGet(HTTPRequest req, 
                                     HTTPResponse.Factory resf) throws 
IOException {
            try {
-               
-               String uri = req.getRequestURI();                               
-               if(HTTPProxy.dbg) p("<"+port+"> GET: "+uri + " (" + 
this.getRemoteIPAddress() + ")");
+               boolean rewrite = false, backlinks = false;
+               String uri = req.getRequestURI();                               
                if(HTTPProxy.dbg) p("<"+port+"> GET: "+uri + " (" + 
this.getRemoteIPAddress() + ")");
+
+               /* URN proxy requests start directly with "urn:" */
                if(uri.startsWith("/")) uri = uri.substring(1);
 
-               boolean rewrite = false, backlinks = false;
+               if(uri.equals(URNPAC)) {
+                   return makePAC(req, resf);
+               }
+
                if(uri.startsWith("rewrite/")) {
                    uri = uri.substring("rewrite/".length());
                    rewrite = true;
-               } else if(uri.equals(URNPAC)) {
-                   return makePAC(req, resf);
                }
 
                if(uri.startsWith("backlinks/")) {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]