File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
import asyncio
2
2
import copy
3
- from cgi import parse_header
4
3
from collections .abc import MutableMapping
5
4
from functools import partial
6
5
from typing import List
7
6
8
7
from graphql import GraphQLError , specified_rules
9
8
from graphql .pyutils import is_awaitable
10
9
from graphql .type .schema import GraphQLSchema
10
+ from sanic .headers import parse_content_header
11
11
from sanic .response import HTTPResponse , html
12
12
from sanic .views import HTTPMethodView
13
13
@@ -213,7 +213,7 @@ def get_mime_type(request):
213
213
if "content-type" not in request .headers :
214
214
return None
215
215
216
- mime_type , _ = parse_header (request .headers ["content-type" ])
216
+ mime_type , _ = parse_content_header (request .headers ["content-type" ])
217
217
return mime_type
218
218
219
219
def should_display_graphiql (self , request ):
You can’t perform that action at this time.
0 commit comments