File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/main/java/com/amadeus Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ public final class Constants {
11
11
// HTTP verbs
12
12
public static final String GET = "GET" ;
13
13
public static final String POST = "POST" ;
14
+ public static final String PUT = "PUT" ;
15
+
14
16
15
17
public static final String HTTPS = "https" ;
16
18
public static final String HTTP = "http" ;
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ protected void establishConnection() throws IOException {
106
106
this .connection = (HttpURLConnection ) new URL (uri ).openConnection ();
107
107
connection .setRequestMethod (verb );
108
108
connection .setDoInput (true );
109
- if (verb == Constants .POST ) {
109
+ if (verb == Constants .POST || verb == Constants . PUT ) {
110
110
connection .setDoOutput (true );
111
111
}
112
112
for (Map .Entry <String , String > entry : headers .entrySet ()) {
You can’t perform that action at this time.
0 commit comments