Skip to content

Commit 51d7ecf

Browse files
committed
try simpler json regex
1 parent ca8f050 commit 51d7ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/core/azure-core/azure/core/pipeline/policies/_universal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,7 @@ class ContentDecodePolicy(SansIOHTTPPolicy):
511511
:type response_encoding: str
512512
"""
513513
# Accept "text" because we're open minded people...
514-
JSON_REGEXP = re.compile(r'^(application|text)/([0-9a-z+.-]+\+)?json$')
514+
JSON_REGEXP = re.compile(r'^(application|text)/(.+\+)?json$')
515515

516516
# Name used in context
517517
CONTEXT_NAME = "deserialized_data"

0 commit comments

Comments
 (0)