We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e750f commit d3a66f4Copy full SHA for d3a66f4
src/cryptojwt/utils.py
@@ -1,12 +1,12 @@
1
import base64
2
-from email.message import EmailMessage
3
import functools
4
import importlib
5
import json
6
import re
7
import struct
8
import warnings
9
from binascii import unhexlify
+from email.message import EmailMessage
10
from typing import List
11
12
from cryptojwt.exception import BadSyntax
@@ -270,6 +270,6 @@ def httpc_params_loader(httpc_params):
270
def check_content_type(content_type, mime_type):
271
"""Return True if the content type contains the MIME type"""
272
msg = EmailMessage()
273
- msg['content-type'] = content_type
+ msg["content-type"] = content_type
274
mt = msg.get_content_type()
275
return mime_type == mt
0 commit comments