Skip to content

Conversation

traylenator
Copy link
Contributor

@traylenator traylenator commented Oct 12, 2025

  • Non-empty dict → keep existing behavior and send json.dumps(data).
  • Empty dict → remove data from prepared_kwargs so no body is sent.

While I understand this is needed I do not understand why the tests ever passed.

@traylenator traylenator requested a review from a team as a code owner October 12, 2025 09:36
@traylenator traylenator requested a review from adehad October 12, 2025 09:36
@traylenator traylenator changed the title Fix: don’t forward empty JSON bodies on GET (prevents Jira 403) fix: don’t forward empty JSON bodies on GET (prevents Jira 403) Oct 12, 2025
Non-empty dict → keep existing behavior and send json.dumps(data).
Empty dict → remove data from prepared_kwargs so no body is sent.

While I understand this is needed I do not understand why the tests
ever passed.

* Fixes pycontribs#2362
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_empty_dict_body_not_forwarded failure

1 participant