File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/main/java/com/sendgrid Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ gradle.properties
16
16
.gradle
17
17
repo /
18
18
19
+ # VSCode IDE
20
+ .vscode
21
+
19
22
# JetBrains IDEs
20
23
* .iml
21
24
** /.idea /
Original file line number Diff line number Diff line change @@ -298,12 +298,7 @@ private Response executeApiCall(HttpRequestBase httpPost) throws IOException {
298
298
try {
299
299
CloseableHttpResponse serverResponse = httpClient .execute (httpPost );
300
300
try {
301
- Response response = getResponse (serverResponse );
302
- if (response .getStatusCode () >= 300 ) {
303
- //throwing IOException here to not break API behavior.
304
- throw new IOException ("Request returned status Code " +response .getStatusCode ()+"Body:" +response .getBody ());
305
- }
306
- return response ;
301
+ return getResponse (serverResponse );
307
302
} finally {
308
303
serverResponse .close ();
309
304
}
You can’t perform that action at this time.
0 commit comments