Files
chronical/vendor/github.com/valyala/fasthttp/uri_windows.go
William Gill caab555275
Some checks failed
Create Release & Upload Assets / Upload Assets To Gitea w/ goreleaser (push) Successful in 2m3s
Create Release & Upload Assets / Build Container Image (push) Failing after 1m6s
Puuuussshhh
2025-10-11 03:41:01 +00:00

12 lines
237 B
Go

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