Skip to content

Commit 0ced4cb

Browse files
authored
Removing content type header for GET requests to Mex endpoint (#227)
1 parent 3d477ab commit 0ced4cb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

msal/mex.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ def _xpath_of_root(route_to_leaf):
4141

4242

4343
def send_request(mex_endpoint, http_client, **kwargs):
44-
mex_document = http_client.get(
45-
mex_endpoint, headers={'Content-Type': 'application/soap+xml'},
46-
**kwargs).text
44+
mex_document = http_client.get(mex_endpoint, **kwargs).text
4745
return Mex(mex_document).get_wstrust_username_password_endpoint()
4846

4947

0 commit comments

Comments
 (0)