aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar byene0923 <34917110+byene0923@users.noreply.github.com> 2022-10-30 00:32:18 +0800
committerGravatar GitHub <noreply@github.com> 2022-10-29 18:32:18 +0200
commiteca86de6f6d550216d0e7acb35f8aee1eb010b0b (patch)
tree6a346aa9b54beb922d71b06aad80d6272e83925d /header.go
parentfix: ignore body should not set content-length of streaming (#1406) (diff)
downloadfasthttp-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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/header.go b/header.go
index fd3defd..89499a3 100644
--- a/header.go
+++ b/header.go
@@ -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