We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03fa045 commit 86ba765Copy full SHA for 86ba765
imagekitio/url.py
@@ -113,10 +113,10 @@ def build_url(self, options: dict) -> str:
113
private_key = options.get("private_key")
114
expiry_timestamp = self.get_signature_timestamp(expire_seconds)
115
116
- # remove the trailing slash('/') from the netloc since `urlunparse` adds it
117
- result_url_dict["netloc"].rstrip("/")
+ # Temporary variable to generate the URL signature
+ modified_result_url_dict = self.prepare_dict_for_unparse(result_url_dict)
118
intermediate_url = urlunparse(
119
- result_url_dict.get(f, "") for f in ParseResult._fields
+ modified_result_url_dict.get(f, "") for f in ParseResult._fields
120
)
121
url_signature = self.get_signature(
122
private_key=private_key,
0 commit comments