-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYNPY-1525] Verify expiration param in url #1139
Conversation
Hello @BryanFauble! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-09-27 22:19:36 UTC |
url_has_expiration = "Expires" in urllib_urlparse.urlparse(url).query | ||
url_query = urllib_urlparse.urlparse(url).query | ||
url_has_expiration = ( | ||
"Expires" in url_query and "X-Amz-Expires" in url_query |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: is there a reason it isn't just X-Amz-Expires
since it's an "and" statement?
Edit: I just saw the tests, nevermind
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 LGTM!
Problem:
Solution:
Testing: