Skip to content

Added HTTP 308 support#1376

Merged
glyph merged 3 commits intotwisted:trunkfrom
ryanc-me:9940-ryanc-me-308-redirects
Aug 23, 2020
Merged

Added HTTP 308 support#1376
glyph merged 3 commits intotwisted:trunkfrom
ryanc-me:9940-ryanc-me-308-redirects

Conversation

@ryanc-me
Copy link
Contributor

@ryanc-me ryanc-me commented Aug 18, 2020

Added support for 308 Permanent Redirects on the RedirectAgent.

Contributor Checklist:

glyph
glyph previously requested changes Aug 21, 2020
Copy link
Member

@glyph glyph left a comment

Choose a reason for hiding this comment

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

Thanks os much for contributing this ryanc!

Would you mind adding a little bit of test coverage for this just to ensure it doesn't regress? Something very simple like twisted.web.test.test_agent._RedirectAgentTestsMixin.test_redirect301 does should do.

@ryanc-me
Copy link
Contributor Author

No problem @glyph - happy to contribute!

I've duplicated the 301 redirect test. Will wait for the CI tests to pass then amend the ticket on Trac. :-)

@glyph glyph dismissed their stale review August 22, 2020 22:10

tests added

@glyph glyph requested a review from a team August 22, 2020 22:10
Copy link
Member

@glyph glyph 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!

@glyph glyph merged commit adf5c70 into twisted:trunk Aug 23, 2020
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