ripple-api/vendor/github.com/valyala/fasthttp/uri_windows.go
Morgan Bazalgette 736c904f65 Update vendor
2017-02-02 13:53:44 +01: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
}