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 */
|
---|
2 | package org.openstreetmap.josm.io;
|
---|
3 |
|
---|
4 | import java.io.*;
|
---|
5 | import java.net.URL;
|
---|
6 | import java.net.Proxy;
|
---|
7 |
|
---|
8 | public 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 |
|
---|
14 | public 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.