Skip to content

Commit

Permalink
Merge pull request #36 from github/accept-text-fragment-html-as-well
Browse files Browse the repository at this point in the history
Accept `text/fragment+html` as a content-type
  • Loading branch information
koddsson authored Jan 29, 2020
2 parents 74ba1b1 + 7580826 commit 1d58216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const requests = new WeakMap()
export function fragment(el: Element, url: string): Promise<string> {
const xhr = new XMLHttpRequest()
xhr.open('GET', url, true)
xhr.setRequestHeader('Accept', 'text/html; fragment')
xhr.setRequestHeader('Accept', 'text/html; fragment, text/fragment+html')
return request(el, xhr)
}

Expand Down

0 comments on commit 1d58216

Please sign in to comment.