mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: s.contains(s2) instead of in
This commit is contained in:
@@ -66,7 +66,7 @@ fn parse_request_line(s string) ?(http.Method, urllib.URL, http.Version) {
|
||||
}
|
||||
|
||||
fn parse_header(s string) ?(string, string) {
|
||||
if ':' !in s {
|
||||
if !s.contains(':') {
|
||||
return error('missing colon in header')
|
||||
}
|
||||
words := s.split_nth(':', 2)
|
||||
|
Reference in New Issue
Block a user