Skip to content

Commit 97d4c62

Browse files
authored
Merge pull request #21 from github/change-text-html-fragment-mimetype
Add `text/fragment+html` to accept header
2 parents 0f8c52a + af24a13 commit 97d4c62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ async function fetchResults(remoteInput: RemoteInputElement, checkCurrentQuery:
104104
response = await fetchWithNetworkEvents(remoteInput, url.toString(), {
105105
signal: state.controller.signal,
106106
credentials: 'same-origin',
107-
headers: {accept: 'text/html; fragment'}
107+
headers: {accept: 'text/html; fragment, text/fragment+html'}
108108
})
109109
html = await response.text()
110110
remoteInput.removeAttribute('loading')

0 commit comments

Comments
 (0)