util: fix browser detection
This commit is contained in:
parent
9f7cbdee95
commit
ed625596df
|
@ -49,7 +49,7 @@ isText = (mime) ->
|
|||
# Determine if we consider the user a browser or not
|
||||
isBrowser = (req) ->
|
||||
b = detectBrowser req.headers.get 'user-agent'
|
||||
(not b) or (b.name != 'searchbot')
|
||||
b and (b.name != 'searchbot')
|
||||
|
||||
export {
|
||||
getFileName,
|
||||
|
|
Loading…
Reference in a new issue