aboutsummaryrefslogtreecommitdiff
path: root/header.go
diff options
context:
space:
mode:
authorGravatar cui fliter <imcusg@gmail.com> 2023-03-04 00:43:44 +0800
committerGravatar GitHub <noreply@github.com> 2023-03-03 17:43:44 +0100
commitac631aa4eb931bef87a03eda7faa3d9e94cb4010 (patch)
tree1434043d76c516e66898dce0c236d872a95cd727 /header.go
parenttest: bind to localhost instead of all interfaces (#1495) (diff)
downloadfasthttp-ac631aa4eb931bef87a03eda7faa3d9e94cb4010.tar.gz
fasthttp-ac631aa4eb931bef87a03eda7faa3d9e94cb4010.tar.bz2
fasthttp-ac631aa4eb931bef87a03eda7faa3d9e94cb4010.zip
fix functiom name (#1505)
Signed-off-by: cui fliter <imcusg@gmail.com>
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 f2379fb..8804204 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)
}
-// SetByteRanges sets 'Range: bytes=startPos-endPos' header.
+// SetByteRange 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.