Ignore:
Timestamp:
2018-03-04T16:09:51+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #16050 - nicer display of HTTP errors from OSM API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r13488 r13499  
    727727                    CredentialsManager.getInstance().purgeCredentialsCache(RequestorType.SERVER);
    728728                    throw new OsmApiException(retCode, errorHeader, errorBody, activeConnection.getURL().toString(),
    729                             doAuthenticate ? retrieveBasicAuthorizationLogin(client) : null);
     729                            doAuthenticate ? retrieveBasicAuthorizationLogin(client) : null, response.getContentType());
    730730                default:
    731731                    throw new OsmApiException(retCode, errorHeader, errorBody);
Note: See TracChangeset for help on using the changeset viewer.