IsScript reports whether a client is a script.
()
| 1204 | |
| 1205 | // IsScript reports whether a client is a script. |
| 1206 | func (ctx *Context) IsScript() bool { |
| 1207 | s := strings.ToLower(ctx.GetHeader("User-Agent")) |
| 1208 | return isScriptRegex.MatchString(s) |
| 1209 | } |
| 1210 | |
| 1211 | // IsSSL reports whether the client is running under HTTPS SSL. |
| 1212 | // |
nothing calls this directly
no test coverage detected