source: josm/trunk/src/org/openstreetmap/josm/io/MyHttpURLConnection.java@ 1023

Last change on this file since 1023 was 999, checked in by stoecker, 16 years ago

close bug #1588, code cleanup by bruce89

  • Property svn:eol-style set to native
File size: 722 bytes
Line 
1/* Stupid package to override the restriction on payloads with DELETEs */
2package org.openstreetmap.josm.io;
3
4import java.io.*;
5import java.net.URL;
6import java.net.Proxy;
7
8public class MyHttpURLConnection extends sun.net.www.protocol.http.HttpURLConnection {
9 protected MyHttpURLConnection(URL u, Proxy p, sun.net.www.protocol.http.Handler handler)
10 {
11 super(u,p,handler);
12 }
13
14public synchronized OutputStream getOutputStream()
15 throws IOException {
16 String oldmethod = method;
17 method = "POST";
18 OutputStream temp = super.getOutputStream();
19 method = oldmethod;
20 return temp;
21}
22}
Note: See TracBrowser for help on using the repository browser.