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

[v1] Fix options initialization in ServiceClient.Request (fixes #2798) #2800

Merged
merged 1 commit into from Oct 9, 2023

Conversation

gophercloud-backport-bot[bot]
Copy link

Backport: #2799

Request is a part of the public API, but it relies on being called by
Get/Post/etc to properly initialize its options. Namely:

  1. it may crash on a nil map assignment if there are MoreHeaders,
  2. it does not handle microversions.

This change moves the relevant code to Request.

Request is a part of the public API, but it relies on being called by
Get/Post/etc to properly initialize its options. Namely:
1) it may crash on a nil map assignment if there are MoreHeaders,
2) it does not handle microversions.

This change moves the relevant code to Request.
@github-actions github-actions bot added the semver:patch No API change label Oct 6, 2023
@coveralls
Copy link

Coverage Status

coverage: 77.421%. remained the same when pulling 964ece5 on bp-v1-0f4a9ff into 1ef3b08 on v1.

@mandre mandre merged commit 90af7a3 into v1 Oct 9, 2023
26 checks passed
@mandre mandre deleted the bp-v1-0f4a9ff branch October 9, 2023 06:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch No API change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants