scim2-client 0.1.10__tar.gz → 0.1.11__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scim2-client
3
- Version: 0.1.10
3
+ Version: 0.1.11
4
4
  Summary: Pythonically build SCIM requests and parse SCIM responses
5
5
  License: MIT
6
6
  Keywords: scim,scim2,provisioning,httpx,api
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
4
4
 
5
5
  [tool.poetry]
6
6
  name = "scim2-client"
7
- version = "0.1.10"
7
+ version = "0.1.11"
8
8
  description = "Pythonically build SCIM requests and parse SCIM responses"
9
9
  authors = ["Yaal Coop <contact@yaal.coop>"]
10
10
  license = "MIT"
@@ -176,7 +176,10 @@ class SCIMClient:
176
176
  # https://datatracker.ietf.org/doc/html/rfc7644.html#section-8.1
177
177
 
178
178
  expected_response_content_types = ("application/scim+json", "application/json")
179
- if response.headers.get("content-type") not in expected_response_content_types:
179
+ if (
180
+ response.headers.get("content-type").split(";").pop(0)
181
+ not in expected_response_content_types
182
+ ):
180
183
  raise UnexpectedContentType(source=response)
181
184
 
182
185
  # In addition to returning an HTTP response code, implementers MUST return
File without changes