Skip to content

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

Merged
mandre merged 1 commit intov1from
bp-v1-0f4a9ff
Oct 9, 2023
Merged

[v1] Fix options initialization in ServiceClient.Request (fixes #2798)#2800
mandre merged 1 commit intov1from
bp-v1-0f4a9ff

Conversation

@gophercloud-backport-bot
Copy link
Copy Markdown

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
Copy Markdown

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
@mandre mandre deleted the bp-v1-0f4a9ff branch October 9, 2023 06:55
@pierreprinetti pierreprinetti added the v1 This PR targets v1 label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:patch No API change v1 This PR targets v1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants