Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attach boolean value to the x-amzn-codewhisperer-optout header #87

Merged
merged 1 commit into from
Nov 17, 2023

Conversation

imykhai
Copy link
Contributor

@imykhai imykhai commented Nov 17, 2023

Problem

x-amzn-codewhisperer-optout can't be empty string and must be string value "true" | "false" based on the shareCodeWhispererContentWithAWS setting value.
When empty string header is added, CW API returns ValidationException: Improperly formed request

Solution

Attach boolean value to the x-amzn-codewhisperer-optout header and always pass it with a CW request

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@imykhai imykhai merged commit 7b2cb1a into main Nov 17, 2023
2 checks passed
@imykhai imykhai deleted the imykhai/fix-optout-header branch November 17, 2023 12:44
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