Changeset 11193 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2016-10-30T15:50:10+01:00 (8 years ago)
Author:
Don-vip
Message:

fix #13872 - OAuth signing of all API requests to support user-based bandwith limit instead of IP-based one (based on patch by wiktorn)

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

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

    r11110 r11193  
    2727 */
    2828public class OsmServerChangesetReader extends OsmServerReader {
    29 
    30     /**
    31      * Constructs a new {@code OsmServerChangesetReader}.
    32      */
    33     public OsmServerChangesetReader() {
    34         setDoAuthenticate(false);
    35     }
    3629
    3730    /**
  • trunk/src/org/openstreetmap/josm/io/OsmServerReader.java

    r11023 r11193  
    2929public abstract class OsmServerReader extends OsmConnection {
    3030    private final OsmApi api = OsmApi.getOsmApi();
    31     private boolean doAuthenticate;
     31    private boolean doAuthenticate = OsmApi.isUsingOAuth();
    3232    protected boolean gpxParsedProperly;
    3333
Note: See TracChangeset for help on using the changeset viewer.