Add Content-Type header to /api/v2/key request#3352
Conversation
Replaces text/plain with application/json for proper ingestion on the backend
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
Description and Related Issue(s)
Replaces text/plain with application/json for proper ingestion on the backend.
Checklist for PR author
Note
Low Risk
Low risk: adds an explicit
Content-Type: application/jsonheader to an existing POST request, with minimal behavioral impact beyond backend request parsing.Overview
Fixes the rate-limit bypass flow in
AppErrorTooManyRequestsby explicitly settingContent-Type: application/jsonon thePOSTtogeneral: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.