Changeset 9904 in josm


Ignore:
Timestamp:
2016-03-01T13:13:04+01:00 (6 years ago)
Author:
simon04
Message:

see #12584 - Provide some OAuth debug output

File:
1 edited

Legend:

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

    r9355 r9904  
    195195            return null;
    196196        }
     197        Main.warn("No authenticity_token found in response!");
    197198        return null;
    198199    }
     
    200201    protected SessionId extractOsmSession() {
    201202        List<String> setCookies = connection.getResponse().getHeaderFields().get("Set-Cookie");
    202         if (setCookies == null)
    203             // no cookies set
     203        if (setCookies == null) {
     204            Main.warn("No 'Set-Cookie' in response header!");
    204205            return null;
     206        }
    205207
    206208        for (String setCookie: setCookies) {
     
    227229            }
    228230        }
     231        Main.warn("No suitable 'Set-Cookie' in response header found! {0}", setCookies);
    229232        return null;
    230233    }
Note: See TracChangeset for help on using the changeset viewer.