Skip to content

Commit 3ce4b5c

Browse files
committed
replace equal symbol to method for string
1 parent 34f3359 commit 3ce4b5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/amadeus/Request.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ protected void establishConnection() throws IOException {
110110
this.connection = (HttpURLConnection) new URL(uri).openConnection();
111111
connection.setRequestMethod(verb);
112112
connection.setDoInput(true);
113-
if (verb == Constants.POST || verb == Constants.PUT) {
113+
if (verb.equals(Constants.POST) || verb.equals(Constants.PUT)) {
114114
connection.setDoOutput(true);
115115
}
116116
for (Map.Entry<String, String> entry : headers.entrySet()) {

0 commit comments

Comments
 (0)