Last change
on this file since 145 was 145, checked in by Izuru Yakumo, 22 months ago |
Updated the Makefile and vendored depedencies
Signed-off-by: Izuru Yakumo <yakumo.izuru@…>
|
File size:
222 bytes
|
Line | |
---|
1 | //go:build !windows
|
---|
2 | // +build !windows
|
---|
3 |
|
---|
4 | package fasthttp
|
---|
5 |
|
---|
6 | func addLeadingSlash(dst, src []byte) []byte {
|
---|
7 | // add leading slash for unix paths
|
---|
8 | if len(src) == 0 || src[0] != '/' {
|
---|
9 | dst = append(dst, '/')
|
---|
10 | }
|
---|
11 |
|
---|
12 | return dst
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.