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

Update feature_flags_api.rb to support semantic patches on a feature flag #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nastyagrishina
Copy link

@nastyagrishina nastyagrishina commented Jul 26, 2024

patch_feature_flag_with_http_info was overwriting custom 'Content-Type' header used for semantic patches on a feature flag.

  • Added a conditional check to ensure 'Content-Type' header is only set if it is not already present in header_params.
  • This prevents overwriting an existing 'Content-Type' header value

…flag

patch_feature_flag_with_http_info was overwriting custom 'Content-Type' header used for semantic patches on a feature flag.

- Added a conditional check to ensure 'Content-Type' header is only set if it is not already present in `header_params`.
- This prevents overwriting an existing 'Content-Type' header value
@nastyagrishina nastyagrishina changed the title Update feature_flags_api.rb to support semantic patches on a feature … Update feature_flags_api.rb to support semantic patches on a feature flag Jul 26, 2024
@nastyagrishina
Copy link
Author

@brooswit @InTheCloudDan @bwoskow-ld @eli-darkly Could you please review this PR? It addresses an issue with the Content-Type header for semantic patch requests.

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.

1 participant