We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 709c7d5 commit 10420f1Copy full SHA for 10420f1
src/main/java/com/amadeus/Request.java
@@ -106,7 +106,9 @@ protected void establishConnection() throws IOException {
106
this.connection = (HttpURLConnection) new URL(uri).openConnection();
107
connection.setRequestMethod(verb);
108
connection.setDoInput(true);
109
- connection.setDoOutput(true);
+ if (verb == Constants.POST) {
110
+ connection.setDoOutput(true);
111
+ }
112
for (Map.Entry<String, String> entry : headers.entrySet()) {
113
connection.setRequestProperty(entry.getKey(), entry.getValue());
114
}
0 commit comments