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