aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar kinggo <lilong.21@bytedance.com> 2022-11-18 14:13:18 +0800
committerGravatar GitHub <noreply@github.com> 2022-11-18 08:13:18 +0200
commit7b3bf58850065a933102f81405a39d0be02a9e2f (patch)
treea71279dd33a82e525ea27cd842cce57bc9d0e1c6 /header.go
parentWait for the response of pipelineWork in background and return it to pool (#1... (diff)
downloadfasthttp-7b3bf58850065a933102f81405a39d0be02a9e2f.tar.gz
fasthttp-7b3bf58850065a933102f81405a39d0be02a9e2f.tar.bz2
fasthttp-7b3bf58850065a933102f81405a39d0be02a9e2f.zip
style: modify typo and remove repeated type conversions (#1437)
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 8292767..57fa701 100644
--- a/header.go
+++ b/header.go
@@ -109,7 +109,7 @@ func (h *ResponseHeader) SetContentRange(startPos, endPos, contentLength int) {
h.setNonSpecial(strContentRange, h.bufKV.value)
}
-// SetByteRange sets 'Range: bytes=startPos-endPos' header.
+// SetByteRanges sets 'Range: bytes=startPos-endPos' header.
//
// - If startPos is negative, then 'bytes=-startPos' value is set.
// - If endPos is negative, then 'bytes=startPos-' value is set.