Skip to content

Upload: Fix headers handling - #316

Merged
iLLiCiTiT merged 2 commits into
developfrom
bugfix/fix-headers-handling
Apr 1, 2026
Merged

iLLiCiTiT merged 2 commits into
developfrom
bugfix/fix-headers-handling

Conversation

@iLLiCiTiT

Copy link
Copy Markdown
Member

Changelog Description

Fix headers being None.

Additional review information

Upload reviewable has defined headers kwarg which is set to None which is not expected to be in _upload_file.

Testing notes:

  1. Calling upload_reviewable without headers kwarg should work.

@iLLiCiTiT iLLiCiTiT added the type: bug Something isn't working label Apr 1, 2026
@iLLiCiTiT iLLiCiTiT self-assigned this Apr 1, 2026
@iLLiCiTiT
iLLiCiTiT requested a review from BigRoy April 1, 2026 07:57

@BigRoy BigRoy left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we never be allowed to specify any headers here?
Also, with this change - the 'fix' you're putting in core now will fail with the newer python API because you're explicitly passing headers there? 🤔

@iLLiCiTiT

iLLiCiTiT commented Apr 1, 2026 •

Copy link
Copy Markdown
Member Author

Should we never be allowed to specify any headers here?

We should allow to specify headers (we do).

Also, with this change - the 'fix' you're putting in core now will fail with the newer python API because you're explicitly passing headers there?

No, this just removes the headers from explicit possible args for upload_reviewable but you can still pass it in as kwarg.

@iLLiCiTiT
iLLiCiTiT merged commit 6b0c965 into develop Apr 1, 2026
3 checks passed
@iLLiCiTiT
iLLiCiTiT deleted the bugfix/fix-headers-handling branch April 1, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants