diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2016-03-29 16:26:21 +0300 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2016-03-29 16:26:21 +0300 |
commit | 0d43464f6446a614d87bba452471356138adeee1 (patch) | |
tree | 3362ff496e96fac4c8896193b1babf9ed0b0e9fa /fs.go | |
parent | Renamed setArg to setArgBytes (diff) | |
download | fasthttp-0d43464f6446a614d87bba452471356138adeee1.tar.gz fasthttp-0d43464f6446a614d87bba452471356138adeee1.tar.bz2 fasthttp-0d43464f6446a614d87bba452471356138adeee1.zip |
Renamed unsafeBytes2Str to b2s
Diffstat (limited to 'fs.go')
-rw-r--r-- | fs.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |