mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
fix: avoid sending HEAD request on provider download (#36998)
* fix: avoid sending HEAD request on provider download Signed-off-by: Or Shachar <orchoock@gmail.com> * Apply suggestions from code review --------- Signed-off-by: Or Shachar <orchoock@gmail.com> Co-authored-by: Liam Cervante <liam.cervante@hashicorp.com>
This commit is contained in:
parent
4e00e1ecdb
commit
88da854f34
2 changed files with 6 additions and 0 deletions
5
.changes/v1.12/BUG FIXES-20250514-184357.yaml
Normal file
5
.changes/v1.12/BUG FIXES-20250514-184357.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
kind: BUG FIXES
|
||||
body: Fix regression during provider installation by reverting back to not sending HEAD requests.
|
||||
time: 2025-05-14T18:43:57.332193-04:00
|
||||
custom:
|
||||
Issue: "36998"
|
||||
|
|
@ -34,6 +34,7 @@ func installFromHTTPURL(ctx context.Context, meta getproviders.PackageMeta, targ
|
|||
Client: httpclient.New(),
|
||||
Netrc: true,
|
||||
XTerraformGetDisabled: true,
|
||||
DoNotCheckHeadFirst: true,
|
||||
}
|
||||
|
||||
urlObj, err := url.Parse(urlStr)
|
||||
|
|
|
|||
Loading…
Reference in a new issue