Changeset 12992 in josm for trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
- Timestamp:
- 2017-10-14T00:09:56+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/OsmServerReader.java
r12711 r12992 6 6 import java.io.IOException; 7 7 import java.io.InputStream; 8 import java.net.Authenticator.RequestorType; 8 9 import java.net.HttpURLConnection; 9 10 import java.net.MalformedURLException; … … 195 196 } 196 197 try { 197 if (response.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) 198 if (response.getResponseCode() == HttpURLConnection.HTTP_UNAUTHORIZED) { 199 CredentialsManager.getInstance().purgeCredentialsCache(RequestorType.SERVER); 198 200 throw new OsmApiException(HttpURLConnection.HTTP_UNAUTHORIZED, null, null); 201 } 199 202 200 203 if (response.getResponseCode() == HttpURLConnection.HTTP_PROXY_AUTH)
Note:
See TracChangeset
for help on using the changeset viewer.