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

feat: support request body forwarding on redirects #390

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

tdstein
Copy link
Collaborator

@tdstein tdstein commented Feb 24, 2025

All requests sent over HTTP to Connect are responded to with a redirect to the HTTPS location. By default, Requests follows the default HTTP specification and removes the POST body when redirecting. We want to override this behavior to ensure the POST body is carried through the redirect.

Resolves #385

Copy link

github-actions bot commented Feb 24, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1839 1729 94% 0% 🟢

New Files

File Coverage Status
src/posit/connect/sessions.py 100% 🟢
TOTAL 100% 🟢

Modified Files

File Coverage Status
src/posit/connect/client.py 99% 🟢
TOTAL 99% 🟢

updated for commit: b9d578d by action🐍



@responses.activate
def test_post_redirect_307():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this test for 308 as well?

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.

feat: forward POST body with 3xx redirection statues
3 participants