oltu-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1483066 - /oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/URLConnectionClient.java
Date Wed, 15 May 2013 20:15:25 GMT
Author: stein
Date: Wed May 15 20:15:25 2013
New Revision: 1483066

URL: http://svn.apache.org/r1483066
Log:
Also response code 401 can be returned by an authorization server

Modified:
    oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/URLConnectionClient.java

Modified: oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/URLConnectionClient.java
URL: http://svn.apache.org/viewvc/oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/URLConnectionClient.java?rev=1483066&r1=1483065&r2=1483066&view=diff
==============================================================================
--- oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/URLConnectionClient.java
(original)
+++ oltu/trunk/oauth-2.0/client/src/main/java/org/apache/oltu/oauth2/client/URLConnectionClient.java
Wed May 15 20:15:25 2013
@@ -96,7 +96,7 @@ public class URLConnectionClient impleme
 
                 InputStream inputStream;
                 responseCode = httpURLConnection.getResponseCode();
-                if (responseCode == 400) {
+                if (responseCode == 400 || responseCode == 401) {
                     inputStream = httpURLConnection.getErrorStream();
                 } else {
                     inputStream = httpURLConnection.getInputStream();



Mime
View raw message