Fix RuntimeEndpoint (#279)

This commit is contained in:
Lianmin Zheng
2024-03-11 05:24:24 -07:00
committed by GitHub
parent d5ae2ebaa2
commit 13662fd533
4 changed files with 20 additions and 7 deletions

View File

@@ -88,7 +88,9 @@ class HttpResponse:
return self.resp.status
def http_request(url, json=None, stream=False, auth_token=None, api_key=None, verify=None):
def http_request(
url, json=None, stream=False, auth_token=None, api_key=None, verify=None
):
"""A faster version of requests.post with low-level urllib API."""
headers = {"Content-Type": "application/json; charset=utf-8"}