(prefix string, path string)
| 74 | } |
| 75 | |
| 76 | func stripPrefix(prefix string, path string) string { |
| 77 | if prefix == "" { |
| 78 | return path |
| 79 | } |
| 80 | if p := strings.TrimPrefix(path, prefix); len(p) < len(path) { |
| 81 | return p |
| 82 | } |
| 83 | return path |
| 84 | } |
| 85 | |
| 86 | // errSeeker is returned by ServeContent's sizeFunc when the content |
| 87 | // doesn't seek properly. The underlying Seeker's error text isn't |