Skip to content

Commit 008c881

Browse files
committed
OpenBSD ftp started sending an Accept header
Before it got text/plain via the "Doesn't look like a real browser" path match it explicitly instead. openbsd/src@456e8b6
1 parent 29a87a1 commit 008c881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ ACCEPT:
141141
}
142142
}
143143
ua := req.Header.Get("User-Agent")
144-
if strings.Contains(ua, "curl/") || strings.Contains(ua, "Wget/") || strings.Contains(ua, " WindowsPowerShell/") {
144+
if strings.Contains(ua, "curl/") || strings.Contains(ua, "Wget/") || strings.Contains(ua, " WindowsPowerShell/") || strings.Contains(ua, "OpenBSD ftp") {
145145
return Plain
146146
}
147147
if mode := req.Header.Get("Sec-Fetch-Mode"); mode == "cors" {

0 commit comments

Comments
 (0)