Skip to content

Send mint-token requests with a proper Content-Type#18334

Merged
woodruffw merged 2 commits intomainfrom
ww/tp-ct
Mar 7, 2026
Merged

Send mint-token requests with a proper Content-Type#18334
woodruffw merged 2 commits intomainfrom
ww/tp-ct

Conversation

@woodruffw
Copy link
Copy Markdown
Member

Summary

Using .body() meant that the request was sent without a Content-Type, whereas we want to explicitly communicate that the mint-token request is a JSON payload. Using .json() causes request to send the Content-Type header by default.

Test Plan

Existing coverage.

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw requested review from konstin and zanieb March 5, 2026 22:00
@woodruffw woodruffw self-assigned this Mar 5, 2026
@woodruffw woodruffw added internal A refactor or improvement that is not user-facing test:integration Enable integration tests for a pull request labels Mar 5, 2026
@woodruffw woodruffw requested a review from EliteTK March 5, 2026 22:00
@woodruffw woodruffw removed the internal A refactor or improvement that is not user-facing label Mar 5, 2026
@woodruffw woodruffw changed the title Use .json() instead of .body() to send mint-token requests Send mint-token requests with a proper Content-Type Mar 5, 2026
@woodruffw woodruffw temporarily deployed to uv-test-publish March 5, 2026 22:05 — with GitHub Actions Inactive
@woodruffw woodruffw temporarily deployed to uv-test-registries March 5, 2026 22:05 — with GitHub Actions Inactive
Copy link
Copy Markdown
Contributor

@EliteTK EliteTK 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.

Interesting error in CI though... Looks like we the reqwest dep doesn't have the json feature enabled in that scenario?

@woodruffw
Copy link
Copy Markdown
Member Author

Oh yeah, I bet we need to add it to the per-crate features. I'll do that!

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw temporarily deployed to uv-test-publish March 7, 2026 12:36 — with GitHub Actions Inactive
@woodruffw woodruffw temporarily deployed to uv-test-registries March 7, 2026 12:36 — with GitHub Actions Inactive
@woodruffw woodruffw merged commit e30c081 into main Mar 7, 2026
257 of 258 checks passed
@woodruffw woodruffw deleted the ww/tp-ct branch March 7, 2026 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:integration Enable integration tests for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants