Skip to content

Commit 27e3ac6

Browse files
committed
Fixed a patch
1 parent 88bbb47 commit 27e3ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manticoresearch/rest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async def request(
164164

165165
# For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
166166
if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
167-
if re.search('json', headers['Content-Type'], re.IGNORECASE1):
167+
if headers['Content-Type'] == "application/json":
168168
if body is not None:
169169
body = json.dumps(body)
170170
args["data"] = body

0 commit comments

Comments
 (0)