mirror of
https://github.com/golang/go.git
synced 2025-05-19 14:24:46 +00:00
net/textproto: pass missing argument to fmt.Sprintf
The vet tool didn't catch this because the fmt.Sprintf format argument was written as an expression. Fixes #37467 Change-Id: I72c20ba45e3f42c195fa5e68adcdb9837c7d7ad5 Reviewed-on: https://go-review.googlesource.com/c/go/+/221297 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
This commit is contained in:
parent
2962c96c9f
commit
33e98326a2
@ -557,7 +557,7 @@ func noValidation(_ []byte) error { return nil }
|
|||||||
// contain a colon.
|
// contain a colon.
|
||||||
func mustHaveFieldNameColon(line []byte) error {
|
func mustHaveFieldNameColon(line []byte) error {
|
||||||
if bytes.IndexByte(line, ':') < 0 {
|
if bytes.IndexByte(line, ':') < 0 {
|
||||||
return ProtocolError(fmt.Sprintf("malformed MIME header: missing colon: %q" + string(line)))
|
return ProtocolError(fmt.Sprintf("malformed MIME header: missing colon: %q", line))
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user