diff options
author | byene0923 <34917110+byene0923@users.noreply.github.com> | 2022-10-30 00:32:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-29 18:32:18 +0200 |
commit | eca86de6f6d550216d0e7acb35f8aee1eb010b0b (patch) | |
tree | 6a346aa9b54beb922d71b06aad80d6272e83925d /header.go | |
parent | fix: ignore body should not set content-length of streaming (#1406) (diff) | |
download | fasthttp-eca86de6f6d550216d0e7acb35f8aee1eb010b0b.tar.gz fasthttp-eca86de6f6d550216d0e7acb35f8aee1eb010b0b.tar.bz2 fasthttp-eca86de6f6d550216d0e7acb35f8aee1eb010b0b.zip |
fix: (#1410)
1. the length of trailer key should > 0
2. fix http_test words typo
Diffstat (limited to 'header.go')
-rw-r--r-- | header.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2520,8 +2520,8 @@ func (h *ResponseHeader) parseTrailer(buf []byte) (int, error) { err = fmt.Errorf("forbidden trailer key %q", s.key) continue } + h.h = appendArgBytes(h.h, s.key, s.value, argsHasValue) } - h.h = appendArgBytes(h.h, s.key, s.value, argsHasValue) } if s.err != nil { return 0, s.err |