From 7a9f94b8b2e95e8b81741104aa79063055394a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20So=C3=B3s?= Date: Sun, 31 Jan 2021 14:43:01 +0100 Subject: [PATCH] feat: add text/html to the accepted mime types (#295) --- src/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 71eb2e93..7b09846a 100644 --- a/src/index.js +++ b/src/index.js @@ -79,7 +79,10 @@ function waitAndRun ({ start, url, runFn }) { timeout: waitOnTimeout, verbose: isDebug(), strictSSL: !isInsecure(), - log: isDebug() + log: isDebug(), + headers: { + 'Accept': 'text/html, application/json, text/plain, */*' + } } debug('wait-on options %o', options)