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 34f3359 commit 3ce4b5cCopy full SHA for 3ce4b5c
src/main/java/com/amadeus/Request.java
@@ -110,7 +110,7 @@ protected void establishConnection() throws IOException {
110
this.connection = (HttpURLConnection) new URL(uri).openConnection();
111
connection.setRequestMethod(verb);
112
connection.setDoInput(true);
113
- if (verb == Constants.POST || verb == Constants.PUT) {
+ if (verb.equals(Constants.POST) || verb.equals(Constants.PUT)) {
114
connection.setDoOutput(true);
115
}
116
for (Map.Entry<String, String> entry : headers.entrySet()) {
0 commit comments