summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
Diffstat (limited to 'java')
-rw-r--r--java/src/com/memberwebs/httpauth/HttpAuthConnection.java2
-rw-r--r--java/src/com/memberwebs/httpauth/servlet/ServletHttpAuthenticator.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/memberwebs/httpauth/HttpAuthConnection.java b/java/src/com/memberwebs/httpauth/HttpAuthConnection.java
index 7604d31..e29aaae 100644
--- a/java/src/com/memberwebs/httpauth/HttpAuthConnection.java
+++ b/java/src/com/memberwebs/httpauth/HttpAuthConnection.java
@@ -224,7 +224,7 @@ public class HttpAuthConnection
{
synchronized(this)
{
- if(isConnected() && !m_checkedout)
+ if(!isConnected() && !m_checkedout)
return null;
m_checkedout = true;
diff --git a/java/src/com/memberwebs/httpauth/servlet/ServletHttpAuthenticator.java b/java/src/com/memberwebs/httpauth/servlet/ServletHttpAuthenticator.java
index 4e2d025..be4902f 100644
--- a/java/src/com/memberwebs/httpauth/servlet/ServletHttpAuthenticator.java
+++ b/java/src/com/memberwebs/httpauth/servlet/ServletHttpAuthenticator.java
@@ -107,7 +107,7 @@ public class ServletHttpAuthenticator
String qs = req.getQueryString();
if(qs != null)
- uri += qs;
+ uri += "?" + qs;
// NOTE: We can't set the remote user on the request. That's just
// the way the interfaces are designed