Skip to content

Commit ff795eb

Browse files
authored
Merge pull request #12 from bfncs/dependabot/npm_and_yarn/terser-4.8.1
chore(deps): bump terser from 4.8.0 to 4.8.1
2 parents ddc1577 + 0aa3d9a commit ff795eb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export const stringReplace = (
1515
const opts = { ...defaultOptions, ...options };
1616
return (_req: Request, res: Response, next: NextFunction) => {
1717
hijackResponse(res, function(err, res) {
18-
const contentType = res.get('content-type');
18+
const contentType = res.get('content-type') || '';
1919
if (opts.contentTypeFilterRegexp.test(contentType)) {
2020
if (err) {
2121
res.unhijack(); // Make the original res object work again

0 commit comments

Comments
 (0)