Skip to content

Commit

Permalink
Fix missing function hasHeader error
Browse files Browse the repository at this point in the history
hasHeader does not exist in Request. header() can be used instead
  • Loading branch information
rumo777 committed Oct 12, 2020
1 parent 3bf0dcd commit bedf90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stream/Middleware/EventSourceWatcher.js
Expand Up @@ -9,7 +9,7 @@ class EventSourceWatcher {
let middlewareFunc = null
/* eslint-disable no-unused-vars */
try {
let isIE = (request.hasHeader('ua-cpu') || ((request.header('user-agent', 'unknown')).match(/Trident [\d]{1}/g) !== null))
let isIE = (request.header('ua-cpu') || ((request.header('user-agent', 'unknown')).match(/Trident [\d]{1}/g) !== null))

middlewareFunc = this.stream.setup(source, {
is_ie_req: isIE
Expand Down

0 comments on commit bedf90e

Please sign in to comment.