Skip to content

Commit b4e87a0

Browse files
Update codeflash/code_utils/oauth_handler.py
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
1 parent be28362 commit b4e87a0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

codeflash/code_utils/oauth_handler.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -634,9 +634,7 @@ def exchange_code_for_token(self, code: str, code_verifier: str, redirect_uri: s
634634
}
635635

636636
try:
637-
resp = requests.post(
638-
token_url, headers={"Content-Type": "application/json"}, data=json.dumps(data), timeout=10
639-
)
637+
resp = requests.post(token_url, json=data, timeout=10)
640638
resp.raise_for_status()
641639
token_json = resp.json()
642640
api_key = token_json.get("access_token")

0 commit comments

Comments
 (0)