mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-14 10:20:00 +08:00
fix(rest/httpc): reject request body for HEAD method in buildRequest (#5457)
Co-authored-by: 1911860538 <alxps1911@gmail.com>
This commit is contained in:
@@ -11,5 +11,9 @@ const (
|
||||
colon = ':'
|
||||
)
|
||||
|
||||
// ErrGetWithBody indicates that GET request with body.
|
||||
var ErrGetWithBody = errors.New("HTTP GET should not have body")
|
||||
var (
|
||||
// ErrGetWithBody indicates that GET request with body.
|
||||
ErrGetWithBody = errors.New("HTTP GET should not have body")
|
||||
// ErrHeadWithBody indicates that HEAD request with body.
|
||||
ErrHeadWithBody = errors.New("HTTP HEAD should not have body")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user