Changeset 3748 in josm for trunk/src/org


Ignore:
Timestamp:
2010-12-27T23:26:54+01:00 (14 years ago)
Author:
framm
Message:

API seems to return 200 OK now instead of 302 Moved Temporarily in
response to the "authorize" request which caused fully automtatic
OAuth mode to fail. Fixed JOSM to expect 200 OK.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/oauth/OsmOAuthAuthorizationClient.java

    r3494 r3748  
    433433
    434434            int retCode = connection.getResponseCode();
    435             if (retCode != HttpURLConnection.HTTP_MOVED_TEMP)
     435            if (retCode != HttpURLConnection.HTTP_OK)
    436436                throw new OsmOAuthAuthorizationException(tr("Failed to authorize OAuth request  ''{0}''", requestToken.getKey()));
    437437        } catch(MalformedURLException e) {
Note: See TracChangeset for help on using the changeset viewer.