Skip to content

Commit 16547d8

Browse files
committed
disable HTTP3 whenever protocol is grpc
1 parent 4787a05 commit 16547d8

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
@@ -519,6 +519,10 @@ func (f *flags) validate(isSecure bool) error {
519519
return fmt.Errorf("--%s cannot be used with --%s", unixSocketFlagName, http3FlagName)
520520
}
521521

522+
if f.Protocol == connect.ProtocolGRPC && f.HTTP3 {
523+
return fmt.Errorf("--%s cannot be used with --%s=%s", http3FlagName, protocolFlagName, connect.ProtocolGRPC)
524+
}
525+
522526
if f.Netrc && f.NetrcFile != "" {
523527
return fmt.Errorf("--%s and --%s flags are mutually exclusive; they may not both be specified", netrcFlagName, netrcFileFlagName)
524528
}

0 commit comments

Comments
 (0)