Skip to content

Commit

Permalink
code revise
Browse files Browse the repository at this point in the history
  • Loading branch information
Qinyuan Wan committed Apr 6, 2016
1 parent 4ab8892 commit 39b4b19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ClientRuntimes/NodeJS/ms-rest-azure/lib/azureServiceClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ AzureServiceClient.prototype._checkInitialRequestResponseStatusCodeFailed = func
(initialRequest.response.statusCode === 204 && initialRequest.request.method === 'DELETE')) {
return false;
} else {
return true;
return true;
}
};

Expand Down Expand Up @@ -274,8 +274,8 @@ AzureServiceClient.prototype._updateStateFromLocationHeader = function (pollingS
if (statusCode === 202) {
pollingState.status = LroStates.InProgress;
} else if (statusCode === 200 ||
statusCode === 201 ||
statusCode === 204) {
(initialRequest.response.statusCode === 201 && initialRequest.request.method === 'PUT') ||
(initialRequest.response.statusCode === 204 && initialRequest.request.method === 'DELETE')) {

pollingState.status = LroStates.Succeeded;

Expand Down

0 comments on commit 39b4b19

Please sign in to comment.