Skip to content

Commit

Permalink
Set Content-Type to text/plain for community patch version endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
timoschwarzer authored Oct 29, 2023
1 parent da5dd9e commit 2ca8e0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ server.get('/motd/wotw', async (req, res) => {
})

server.get('/wotw-community-patch/latest', async (req, res) => {
res.setHeader('Content-Type', 'text/plain')
res.send(await cache.retrieve('wotw-community-patch-latest', MOTD_TTL, async () => {
const octokit = new Octokit
const base64Content = (await octokit.rest.repos.getContent({
Expand Down

0 comments on commit 2ca8e0a

Please sign in to comment.