uri_windows.go 232 B

1234567891011121314
  1. //go:build windows
  2. // +build windows
  3. package fasthttp
  4. func addLeadingSlash(dst, src []byte) []byte {
  5. // zero length and "C:/" case
  6. if len(src) == 0 || (len(src) > 2 && src[1] != ':') {
  7. dst = append(dst, '/')
  8. }
  9. return dst
  10. }