Skip to content
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

if defined, use proxy_path for canonical link (issue #359) #395

Merged
merged 2 commits into from
Jan 30, 2018

Conversation

bcail
Copy link
Contributor

@bcail bcail commented Jan 29, 2018

No description provided.

@bcail bcail requested a review from alexwlchan January 29, 2018 20:03
Copy link
Contributor

@alexwlchan alexwlchan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks!

One suggestion for better tests, but after that I think this is fine to merge.

@@ -380,6 +380,14 @@ def test_image_no_redirect_to_canonical(self):
resp = self.client.get(to_get, follow_redirects=False)
self.assertEqual(resp.status_code, 200)

def test_image_proxy_path_canonical_link(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A second test for the case when we don't have a proxy_path set would be good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants