Skip to content

Add Content-Type header to /api/v2/key request#3352

Merged
yvaskov merged 1 commit intomainfrom
temp-token-fix
Apr 15, 2026
Merged

Add Content-Type header to /api/v2/key request#3352
yvaskov merged 1 commit intomainfrom
temp-token-fix

Conversation

@yvaskov
Copy link
Copy Markdown
Contributor

@yvaskov yvaskov commented Apr 15, 2026

Description and Related Issue(s)

Replaces text/plain with application/json for proper ingestion on the backend.

Checklist for PR author

  • I have tested these changes locally.
  • I added tests to cover any new functionality, following this guide
  • Whenever I fix a bug, I include a regression test to ensure that the bug does not reappear silently.
  • If I have added a feature or functionality that is not privacy-compliant (e.g., tracking, analytics, third-party services), I have disabled it for private mode.
  • If I have added, changed, renamed, or removed an environment variable
    • I updated the list of environment variables in the documentation
    • I made the necessary changes to the validator script according to the guide
    • I added "ENVs" label to this pull request

Note

Low Risk
Low risk: adds an explicit Content-Type: application/json header to an existing POST request, with minimal behavioral impact beyond backend request parsing.

Overview
Fixes the rate-limit bypass flow in AppErrorTooManyRequests by explicitly setting Content-Type: application/json on the POST to general:api_v2_key, ensuring the backend correctly treats the payload as JSON.

Reviewed by Cursor Bugbot for commit e942c6e. Bugbot is set up for automated code reviews on this repo. Configure here.

Replaces text/plain with application/json for proper ingestion on the backend
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 15, 2026

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include @coderabbitai review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 5189e3d1-8303-41ec-8448-4961a6399b91

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@yvaskov yvaskov requested a review from maxaleks April 15, 2026 13:25
@yvaskov yvaskov merged commit ac09fab into main Apr 15, 2026
27 checks passed
@yvaskov yvaskov deleted the temp-token-fix branch April 15, 2026 14:28
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