Skip to content

Commit

Permalink
resolves #643 add accept header (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored May 13, 2023
1 parent fd5111e commit db27f64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/js/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ asciidoctor.browser.converter = (webExtension, Constants, Settings) => {
// disable cache
request.open('GET', url, true)
request.setRequestHeader('Cache-Control', 'no-cache, no-store, must-revalidate')
request.setRequestHeader('Accept', 'text/plain, */*')
request.send(null)
} catch (err) {
console.error(`Unable to GET ${url}`, err)
Expand Down

0 comments on commit db27f64

Please sign in to comment.