Skip to content

Commit

Permalink
Fix to have no content type when request body is empty (#7343)
Browse files Browse the repository at this point in the history
* Correct return types for list_secrets, _versions (#7268)

* More useful exceptions for Key Vault errors (#7086)

* Fix to have no content type when request body is empty
  • Loading branch information
Rakshith Bhyravabhotla authored and rakshith91 committed Oct 1, 2019
1 parent 71fe8ff commit ad3edc9
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ def _add_authorization_header(self, request, string_to_sign):
raise _wrap_exception(ex, AzureSigningError)

def on_request(self, request):
if not 'content-type' in request.http_request.headers:
request.http_request.headers['content-type'] = 'application/xml; charset=utf-8'

string_to_sign = \
self._get_verb(request) + \
self._get_headers(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ def _add_authorization_header(self, request, string_to_sign):
raise _wrap_exception(ex, AzureSigningError)

def on_request(self, request):
if not 'content-type' in request.http_request.headers:
request.http_request.headers['content-type'] = 'application/xml; charset=utf-8'

string_to_sign = \
self._get_verb(request) + \
self._get_headers(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ def _add_authorization_header(self, request, string_to_sign):
raise _wrap_exception(ex, AzureSigningError)

def on_request(self, request):
if not 'content-type' in request.http_request.headers:
request.http_request.headers['content-type'] = 'application/xml; charset=utf-8'

string_to_sign = \
self._get_verb(request) + \
self._get_headers(
Expand Down

0 comments on commit ad3edc9

Please sign in to comment.