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
1616.gradle
1717repo /
1818
19+ # VSCode IDE
20+ .vscode
21+
1922# JetBrains IDEs
2023* .iml
2124** /.idea /
Original file line number Diff line number Diff line change @@ -298,12 +298,7 @@ private Response executeApiCall(HttpRequestBase httpPost) throws IOException {
298298 try {
299299 CloseableHttpResponse serverResponse = httpClient .execute (httpPost );
300300 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 );
307302 } finally {
308303 serverResponse .close ();
309304 }
You can’t perform that action at this time.
0 commit comments