Skip to content

Commit

Permalink
Update transport.py
Browse files Browse the repository at this point in the history
  • Loading branch information
saimedhi authored Feb 22, 2024
1 parent e133d52 commit 4e5e9aa
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions opensearchpy/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,6 @@ def perform_request(
headers_response = {
header.lower(): value for header, value in headers_response.items()
}
print("headers_response", headers_response)

except TransportError as e:
if method == "HEAD" and e.status_code == 404:
Expand Down Expand Up @@ -458,10 +457,7 @@ def perform_request(
data = self.deserializer.loads(
data, headers_response.get("content-type")
)
if self.kwargs["calculate_service_time"] is True:
data.update({"x-service-time": headers_response["x-service-time"]})
return data


def close(self) -> Any:
"""
Expand Down

0 comments on commit 4e5e9aa

Please sign in to comment.