Skip to content

Commit

Permalink
fix aysnc header (#16455)
Browse files Browse the repository at this point in the history
  • Loading branch information
RuoyuWang-MS authored Jun 15, 2022
1 parent b760540 commit 115cf37
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class UploadTarget {
}
}

const ASYNC_OPERATION_HEADER = 'azure-asyncoperation';
const LOCATION_HEADER = 'location';

export class AzureSpringCloud {

Expand Down Expand Up @@ -120,7 +120,7 @@ export class AzureSpringCloud {
} else {
tl.debug('App update initiated.')
//If the operation is asynchronous, block pending its conclusion.
var operationStatusUrl = response.headers[ASYNC_OPERATION_HEADER];
var operationStatusUrl = response.headers[LOCATION_HEADER];
if (operationStatusUrl) {
tl.debug('Awaiting operation completion.');
try {
Expand Down Expand Up @@ -285,7 +285,7 @@ export class AzureSpringCloud {
} else {
tl.debug('App update initiated.')
//If the operation is asynchronous, block pending its conclusion.
var operationStatusUrl = response.headers[ASYNC_OPERATION_HEADER];
var operationStatusUrl = response.headers[LOCATION_HEADER];
if (operationStatusUrl) {
tl.debug('Awaiting operation completion.');
try {
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureSpringCloudV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"version": {
"Major": 0,
"Minor": 206,
"Patch": 0
"Patch": 1
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion Tasks/AzureSpringCloudV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"version": {
"Major": 0,
"Minor": 206,
"Patch": 0
"Patch": 1
},
"minimumAgentVersion": "2.104.1",
"groups": [
Expand Down

0 comments on commit 115cf37

Please sign in to comment.