strawberry-graphql 0.240.3__py3-none-any.whl → 0.240.4__py3-none-any.whl
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.
- strawberry/http/async_base_view.py +6 -6
- {strawberry_graphql-0.240.3.dist-info → strawberry_graphql-0.240.4.dist-info}/METADATA +1 -1
- {strawberry_graphql-0.240.3.dist-info → strawberry_graphql-0.240.4.dist-info}/RECORD +6 -6
- {strawberry_graphql-0.240.3.dist-info → strawberry_graphql-0.240.4.dist-info}/LICENSE +0 -0
- {strawberry_graphql-0.240.3.dist-info → strawberry_graphql-0.240.4.dist-info}/WHEEL +0 -0
- {strawberry_graphql-0.240.3.dist-info → strawberry_graphql-0.240.4.dist-info}/entry_points.txt +0 -0
@@ -320,21 +320,21 @@ class AsyncBaseHTTPView(
|
|
320
320
|
async def parse_http_body(
|
321
321
|
self, request: AsyncHTTPRequestAdapter
|
322
322
|
) -> GraphQLRequestData:
|
323
|
-
|
323
|
+
headers = {key.lower(): value for key, value in request.headers.items()}
|
324
|
+
content_type, _ = parse_content_type(request.content_type or "")
|
325
|
+
accept = headers.get("accept", "")
|
324
326
|
|
325
327
|
protocol: Literal["http", "multipart-subscription"] = "http"
|
326
328
|
|
329
|
+
if self._is_multipart_subscriptions(*parse_content_type(accept)):
|
330
|
+
protocol = "multipart-subscription"
|
331
|
+
|
327
332
|
if request.method == "GET":
|
328
333
|
data = self.parse_query_params(request.query_params)
|
329
|
-
if self._is_multipart_subscriptions(content_type, params):
|
330
|
-
protocol = "multipart-subscription"
|
331
334
|
elif "application/json" in content_type:
|
332
335
|
data = self.parse_json(await request.get_body())
|
333
336
|
elif content_type == "multipart/form-data":
|
334
337
|
data = await self.parse_multipart(request)
|
335
|
-
elif self._is_multipart_subscriptions(content_type, params):
|
336
|
-
data = await self.parse_multipart_subscriptions(request)
|
337
|
-
protocol = "multipart-subscription"
|
338
338
|
else:
|
339
339
|
raise HTTPException(400, "Unsupported content type")
|
340
340
|
|
@@ -144,7 +144,7 @@ strawberry/file_uploads/utils.py,sha256=2zsXg3QsKgGLD7of2dW-vgQn_Naf7I3Men9PhEAF
|
|
144
144
|
strawberry/flask/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
145
145
|
strawberry/flask/views.py,sha256=Ss3zpBEjY5W6bR9SUPDbuF7zXErgn_qcXm0MuhzPS7k,5656
|
146
146
|
strawberry/http/__init__.py,sha256=GSvHUDXl1cHfLnb37PXOAnxfoXhvz0f467P1O8uDatM,1620
|
147
|
-
strawberry/http/async_base_view.py,sha256=
|
147
|
+
strawberry/http/async_base_view.py,sha256=5CPdVkw-GcRa7JnTWh255QX8YDvd6re-JcxvYA2vNaE,11770
|
148
148
|
strawberry/http/base.py,sha256=ORw-0lk6UcOH80kdr4VElAvX75S3VTMpRddhVfooGDY,2569
|
149
149
|
strawberry/http/exceptions.py,sha256=WdWO3RvZDax_yAdD0zlVex9tQgwNx7tjz8_A8kP4YHo,193
|
150
150
|
strawberry/http/ides.py,sha256=3dqFRY8_9ZqyIYR_EyRdPZ1zhL3lxRYT2MPk84O_Tk8,874
|
@@ -245,8 +245,8 @@ strawberry/utils/logging.py,sha256=U1cseHGquN09YFhFmRkiphfASKCyK0HUZREImPgVb0c,7
|
|
245
245
|
strawberry/utils/operation.py,sha256=SSXxN-vMqdHO6W2OZtip-1z7y4_A-eTVFdhDvhKeLCk,1193
|
246
246
|
strawberry/utils/str_converters.py,sha256=KGd7QH90RevaJjH6SQEkiVVsb8KuhJr_wv5AsI7UzQk,897
|
247
247
|
strawberry/utils/typing.py,sha256=3xws5kxSQGsp8BnYyUwClvxXNzZakMAuOPoq1rjHRuk,14252
|
248
|
-
strawberry_graphql-0.240.
|
249
|
-
strawberry_graphql-0.240.
|
250
|
-
strawberry_graphql-0.240.
|
251
|
-
strawberry_graphql-0.240.
|
252
|
-
strawberry_graphql-0.240.
|
248
|
+
strawberry_graphql-0.240.4.dist-info/LICENSE,sha256=m-XnIVUKqlG_AWnfi9NReh9JfKhYOB-gJfKE45WM1W8,1072
|
249
|
+
strawberry_graphql-0.240.4.dist-info/METADATA,sha256=IqNDPmQaZcnr9BSSjGRay-Vkj85ebNZzgKTK6XqQl9I,7707
|
250
|
+
strawberry_graphql-0.240.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
251
|
+
strawberry_graphql-0.240.4.dist-info/entry_points.txt,sha256=Nk7-aT3_uEwCgyqtHESV9H6Mc31cK-VAvhnQNTzTb4k,49
|
252
|
+
strawberry_graphql-0.240.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
{strawberry_graphql-0.240.3.dist-info → strawberry_graphql-0.240.4.dist-info}/entry_points.txt
RENAMED
File without changes
|