Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix format.
  • Loading branch information
plusplusjiajia committed Dec 15, 2025
commit 750b14b80af226881989a6651c9421ac6e0c6672
4 changes: 1 addition & 3 deletions pyiceberg/catalog/rest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,7 @@ def add_headers(self, request: PreparedRequest, **kwargs: Any) -> None: # pylin
# For empty bodies, explicitly set the content hash header to the SHA256 of an empty string
body = request.body
if body in (None, b"", ""):
request.headers["x-amz-content-sha256"] = (
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
)
request.headers["x-amz-content-sha256"] = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"

aws_request = AWSRequest(
method=request.method, url=url, params=params, data=request.body, headers=dict(request.headers)
Expand Down