aboutsummaryrefslogtreecommitdiff
path: root/fs.go
diff options
context:
space:
mode:
authorGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-03-29 16:26:21 +0300
committerGravatar Aliaksandr Valialkin <valyala@gmail.com> 2016-03-29 16:26:21 +0300
commit0d43464f6446a614d87bba452471356138adeee1 (patch)
tree3362ff496e96fac4c8896193b1babf9ed0b0e9fa /fs.go
parentRenamed setArg to setArgBytes (diff)
downloadfasthttp-0d43464f6446a614d87bba452471356138adeee1.tar.gz
fasthttp-0d43464f6446a614d87bba452471356138adeee1.tar.bz2
fasthttp-0d43464f6446a614d87bba452471356138adeee1.zip
Renamed unsafeBytes2Str to b2s
Diffstat (limited to 'fs.go')
-rw-r--r--fs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs.go b/fs.go
index cf4eb3a..6fe9aee 100644
--- a/fs.go
+++ b/fs.go
@@ -29,7 +29,7 @@ import (
//
// See also RequestCtx.SendFileBytes.
func ServeFileBytesUncompressed(ctx *RequestCtx, path []byte) {
- ServeFileUncompressed(ctx, unsafeBytesToStr(path))
+ ServeFileUncompressed(ctx, b2s(path))
}
// ServeFileUncompressed returns HTTP response containing file contents
@@ -61,7 +61,7 @@ func ServeFileUncompressed(ctx *RequestCtx, path string) {
//
// See also RequestCtx.SendFileBytes.
func ServeFileBytes(ctx *RequestCtx, path []byte) {
- ServeFile(ctx, unsafeBytesToStr(path))
+ ServeFile(ctx, b2s(path))
}
// ServeFile returns HTTP response containing compressed file contents