Skip to content

Commit 0c1fc5e

Browse files
authored
Merge pull request #109 from microsoftgraph/bug/no-contentype-header
Allow post requests without content-type header
2 parents 563d4b6 + d2dd2c5 commit 0c1fc5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msgraph/core/middleware/retry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _is_request_payload_buffered(self, response):
165165
"""
166166
if response.request.method.upper() in frozenset(['HEAD', 'GET', 'DELETE', 'OPTIONS']):
167167
return True
168-
if response.request.headers['Content-Type'] == "application/octet-stream":
168+
if response.request.headers.get('Content-Type') == "application/octet-stream":
169169
return False
170170
return True
171171

0 commit comments

Comments
 (0)