go-rfc2616/sp/skip_tolerant.go

18 lines
189 B
Go
Raw Normal View History

2023-12-09 17:30:21 +00:00
package sp
func SkipTolerant(p []byte) []byte {
length := len(p)
if length <= 0 {
return nil
}
for i,b := range p {
if !ByteIsTolerant(b) {
return p[i:]
}
}
return nil
}