Skip to content

Commit 574a9ea

Browse files
authored
Fix buf curl with HTTP/2 services (#4016)
1 parent f9fbf5d commit 574a9ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
- No changes yet.
5+
- Fix buf curl for HTTP/2 services
66

77
## [v1.57.1] - 2025-09-16
88

private/buf/cmd/buf/command/curl/curl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ func makeHTTPRoundTripper(f *flags, isSecure bool, authority string, printer ver
11321132
}
11331133
protocols := new(http.Protocols)
11341134
protocols.SetHTTP1(true)
1135-
protocols.SetHTTP2(f.HTTP2PriorKnowledge)
1135+
protocols.SetHTTP2(true)
11361136
protocols.SetUnencryptedHTTP2(f.HTTP2PriorKnowledge && !isSecure)
11371137
return &http.Transport{
11381138
Proxy: http.ProxyFromEnvironment,

0 commit comments

Comments
 (0)