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


Ignore:
Timestamp:
2009-06-20T22:42:53+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #2753: Cannot parse valid node from xml string

File:
1 edited

Legend:

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

    r1682 r1684  
    2323import java.util.HashMap;
    2424import java.util.Properties;
    25 import java.util.StringTokenizer;
    2625
    2726import javax.xml.parsers.SAXParserFactory;
     
    381380                addAuth(activeConnection);
    382381
    383                 if (requestMethod.equals("PUT") || requestMethod.equals("POST")) {
     382                if (requestMethod.equals("PUT") || requestMethod.equals("POST") || requestMethod.equals("DELETE")) {
    384383                    activeConnection.setDoOutput(true);
    385384                    activeConnection.setRequestProperty("Content-type", "text/xml");
Note: See TracChangeset for help on using the changeset viewer.