Skip to content

Commit

Permalink
fix: CLI test failures caused by yarl.URL._val type change (#3235)
Browse files Browse the repository at this point in the history
Backported-from: main
Backported-to: 23.09
Backported-of: 3235
  • Loading branch information
jopemachine committed Jan 24, 2025
1 parent cdb36c8 commit 538f497
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/3235.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix CLI test failures caused by `yarl.URL._val` type change.
2 changes: 1 addition & 1 deletion src/ai/backend/client/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def generate_signature(
Generates the API request signature from the given parameters.
"""
hash_type = hash_type
hostname = endpoint._val.netloc # type: ignore
hostname = endpoint.raw_authority
body_hash = hashlib.new(hash_type, b"").hexdigest()

sign_str = "{}\n{}\n{}\nhost:{}\ncontent-type:{}\nx-backendai-version:{}\n{}".format( # noqa
Expand Down

0 comments on commit 538f497

Please sign in to comment.