Skip to content

Commit 167f9fc

Browse files
committed
disable HTTP3 whenever protocol is grpc
1 parent 86576bd commit 167f9fc

File tree

1 file changed

+4
-0
lines changed
  • private/buf/cmd/buf/command/curl

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,10 @@ func (f *flags) validate(hasURL, isSecure bool) error {
566566
return fmt.Errorf("--%s cannot be used with --%s", unixSocketFlagName, http3FlagName)
567567
}
568568

569+
if f.Protocol == connect.ProtocolGRPC && f.HTTP3 {
570+
return fmt.Errorf("--%s cannot be used with --%s=%s", http3FlagName, protocolFlagName, connect.ProtocolGRPC)
571+
}
572+
569573
if f.Netrc && f.NetrcFile != "" {
570574
return fmt.Errorf("--%s and --%s flags are mutually exclusive; they may not both be specified", netrcFlagName, netrcFileFlagName)
571575
}

0 commit comments

Comments
 (0)