[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: set correct Content-Type for opensearch.xml (#115)

authored by

Burak Yigit Kaya and committed by
GitHub
d1935691 49cff3b9

+4 -1
+4 -1
server/routes/opensearch.xml.get.ts
··· 1 - export default defineEventHandler(async event => { 1 + export default defineEventHandler(event => { 2 2 const url = getRequestURL(event) 3 3 const origin = url.origin 4 + 5 + setHeader(event, 'Content-Type', 'application/opensearchdescription+xml') 6 + 4 7 return ` 5 8 <?xml version="1.0" encoding="UTF-8"?> 6 9 <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">