Changeset 6840 in josm


Ignore:
Timestamp:
2014-02-12T00:40:28+01:00 (5 years ago)
Author:
Don-vip
Message:

fix #9710 - allow HTTPS access to OSM API

File:
1 edited

Legend:

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

    r6830 r6840  
    330330        // this works around a ruby (or lighttpd) bug where two consecutive slashes in
    331331        // an URL will cause a "404 not found" response.
    332         int p; while ((p = rv.indexOf("//", 6)) > -1) { rv.delete(p, p + 1); }
     332        int p; while ((p = rv.indexOf("//", rv.indexOf("://")+2)) > -1) { rv.delete(p, p + 1); }
    333333        return rv.toString();
    334334    }
Note: See TracChangeset for help on using the changeset viewer.