Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit849eb5b

Browse files
committed
Switched to only checking for the exact Success code that Castlabs currently return
1 parentfa49a06 commit849eb5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/main/java/com/brightcove/castlabs/client/CastlabsClient.java‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
importorg.apache.commons.lang.StringUtils;
1515
importorg.apache.http.Header;
1616
importorg.apache.http.HttpEntity;
17+
importorg.apache.http.HttpStatus;
1718
importorg.apache.http.NameValuePair;
1819
importorg.apache.http.client.config.RequestConfig;
1920
importorg.apache.http.client.entity.UrlEncodedFormEntity;
@@ -253,7 +254,7 @@ public void linkAccountToSubMerchant(final LinkAccountToSubMerchantRequest reque
253254
try (finalCloseableHttpResponsehttpResponse =httpclient.execute(httpRequest)) {
254255
finalintstatusCode =httpResponse.getStatusLine().getStatusCode();
255256

256-
if (statusCode<200 ||statusCode >=300) {
257+
if (statusCode!=HttpStatus.SC_NO_CONTENT) {
257258
finalHttpEntityresponseEntity =httpResponse.getEntity();
258259

259260
StringresponseBody ="";

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp