VictoriaMetrics/vendor/github.com/valyala/fasthttp/uri_windows.go
2020-02-23 13:36:03 +02:00

13 lines
213 B
Go

// +build windows
package fasthttp
func addLeadingSlash(dst, src []byte) []byte {
// zero length and "C:/" case
if len(src) == 0 || (len(src) > 2 && src[1] != ':') {
dst = append(dst, '/')
}
return dst
}