Fix: http_request delete method not working (#4975)

This commit is contained in:
th3n00b13 2024-06-14 21:07:22 +09:00 committed by GitHub
parent 511ead4b8d
commit cdb6c801c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,7 +42,10 @@ class HttpExecutorResponse:
return any(v in content_type for v in file_content_types)
def get_content_type(self) -> str:
if 'content-type' in self.headers:
return self.headers.get('content-type')
else:
return self.headers.get('Content-Type') or ""
def extract_file(self) -> tuple[str, bytes]:
"""