Skip to content

Commit

Permalink
fix: previews with .github prefix in accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Mar 14, 2019
1 parent cf0f115 commit 1cfad08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function toRequestOptions (options) {
.concat(options.mediaType.previews)
.map(preview => {
const format = options.mediaType.format ? `.${options.mediaType.format}` : '+json'
return `application/vnd.${preview}-preview${format}`
return `application/vnd.github.${preview}-preview${format}`
})
.join(',')
}
Expand Down

0 comments on commit 1cfad08

Please sign in to comment.