| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -82,7 +82,7 @@ def get_signed_query_params_v2(credentials, expiration, string_to_sign): | |||
| 82 | 82 | service_account_name = credentials.signer_email | |
| 83 | 83 | return { | |
| 84 | 84 | "GoogleAccessId": service_account_name, | |
| 85 | - "Expires": str(expiration), | ||
| 85 | + "Expires": expiration, | ||
| 86 | 86 | "Signature": signature, | |
| 87 | 87 | } | |
| 88 | 88 | ||
@@ -384,7 +384,7 @@ def generate_signed_url_v2( | |||
| 384 | 384 | signature = _sign_message(string_to_sign, access_token, service_account_email) | |
| 385 | 385 | signed_query_params = { | |
| 386 | 386 | "GoogleAccessId": service_account_email, | |
| 387 | - "Expires": str(expiration), | ||
| 387 | + "Expires": expiration_stamp, | ||
| 388 | 388 | "Signature": signature, | |
| 389 | 389 | } | |
| 390 | 390 | else: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -252,7 +252,7 @@ def test_it(self): | |||
| 252 | 252 | ||
| 253 | 253 | expected = { | |
| 254 | 254 | "GoogleAccessId": account_name, | |
| 255 | - "Expires": str(expiration), | ||
| 255 | + "Expires": expiration, | ||
| 256 | 256 | "Signature": base64.b64encode(sig_bytes), | |
| 257 | 257 | } | |
| 258 | 258 | self.assertEqual(result, expected) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments