Changeset 1684 in josm


Ignore:
Timestamp:
Jun 20, 2009 10:42:53 PM (4 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.