Skip to content

Commit

Permalink
Merge pull request #21 from github/change-text-html-fragment-mimetype
Browse files Browse the repository at this point in the history
Add `text/fragment+html` to accept header
  • Loading branch information
koddsson authored Jan 29, 2020
2 parents 0f8c52a + af24a13 commit 97d4c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async function fetchResults(remoteInput: RemoteInputElement, checkCurrentQuery:
response = await fetchWithNetworkEvents(remoteInput, url.toString(), {
signal: state.controller.signal,
credentials: 'same-origin',
headers: {accept: 'text/html; fragment'}
headers: {accept: 'text/html; fragment, text/fragment+html'}
})
html = await response.text()
remoteInput.removeAttribute('loading')
Expand Down

0 comments on commit 97d4c62

Please sign in to comment.