roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r386456 - /incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/AtomServlet.java
Date Thu, 16 Mar 2006 20:46:53 GMT
Author: snoopdave
Date: Thu Mar 16 12:46:42 2006
New Revision: 386456

URL: http://svn.apache.org/viewcvs?rev=386456&view=rev
Log:
Still trying to get BASIC auth right (testing with APP client test suite)

Modified:
    incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/AtomServlet.java

Modified: incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/AtomServlet.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/AtomServlet.java?rev=386456&r1=386455&r2=386456&view=diff
==============================================================================
--- incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/AtomServlet.java
(original)
+++ incubator/roller/trunk/sandbox/atomprotocol/src/org/roller/presentation/atomapi/AtomServlet.java
Thu Mar 16 12:46:42 2006
@@ -134,8 +134,9 @@
                 mLogger.error(e);
             }
         } else {
-            res.setHeader("WWW-Authenticate", "Roller realm");
+            res.setHeader("WWW-Authenticate", "BASIC realm=\"Roller\"");
             res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
+            res.flushBuffer();
         }
     }
     
@@ -198,7 +199,7 @@
                 mLogger.error(e);
             }
         } else {
-            res.setHeader("WWW-Authenticate", "Roller realm");
+            res.setHeader("WWW-Authenticate", "BASIC realm=\"Roller\"");
             res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         }
     }
@@ -249,7 +250,7 @@
                 mLogger.error(e);
             }
         } else {
-            res.setHeader("WWW-Authenticate", "Roller realm");
+            res.setHeader("WWW-Authenticate", "BASIC realm=\"Roller\"");
             res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         }
     }
@@ -280,7 +281,7 @@
                 mLogger.error(e);
             }
         } else {
-            res.setHeader("WWW-Authenticate", "Roller realm");
+            res.setHeader("WWW-Authenticate", "BASIC realm=\"Roller\"");
             res.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
         }
     }



Mime
View raw message