Skip to content

Commit

Permalink
Remove the default content-type in generated code of StorageClientCon…
Browse files Browse the repository at this point in the history
…text
  • Loading branch information
XiaoningLiu authored and vinjiang committed Dec 3, 2018
1 parent 8f9d654 commit ab08505
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions file/lib/StorageURL.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,5 +113,11 @@ export abstract class StorageURL {
url,
pipeline.toServiceClientOptions()
);

// Remove the default content-type in generated code of StorageClientContext
const storageClientContext = this.storageClientContext as any;
if (storageClientContext.requestContentType) {
storageClientContext.requestContentType = undefined;
}
}
}

0 comments on commit ab08505

Please sign in to comment.