Files
fasthttp/uri_unix.go
T
2023-11-08 23:18:13 +01:00

13 lines
203 B
Go

//go:build !windows
package fasthttp
func addLeadingSlash(dst, src []byte) []byte {
// add leading slash for unix paths
if len(src) == 0 || src[0] != '/' {
dst = append(dst, '/')
}
return dst
}