Skip to content

[fix] don't fail if the content type JSON is not specified in the request#146

Merged
Ramon-Jimenez merged 1 commit intodevelopmentfrom
fix/api-proxy-harboard-content-type
Jun 11, 2025
Merged

[fix] don't fail if the content type JSON is not specified in the request#146
Ramon-Jimenez merged 1 commit intodevelopmentfrom
fix/api-proxy-harboard-content-type

Conversation

@tokland
Copy link
Copy Markdown
Contributor

@tokland tokland commented Jun 11, 2025

Fixes https://app.clickup.com/t/8699cygm6

The transition from Flask v2 to v3 broke the proxy between the API and Harbor. Flask now explicitly validates that the Content-Type header is set to application/json before attempting to parse the request body as JSON.

To avoid requiring changes in clients — and since our API consistently uses JSON — we've added the force=True flag when parsing request bodies.

@Ramon-Jimenez Ramon-Jimenez merged commit 030ef32 into development Jun 11, 2025
2 checks passed
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