jeawin-astro 3.0.67 → 3.0.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jeawin-astro",
3
- "version": "3.0.67",
3
+ "version": "3.0.68",
4
4
  "author": "chaegumi <chaegumi@qq.com>",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -9,5 +9,9 @@ export const GET:APIRoute = async ({site, locals}) => {
9
9
 
10
10
  // console.log(resdata);
11
11
 
12
- return new Response(resdata);
12
+ return new Response(resdata, {
13
+ headers: {
14
+ "Content-Type": "text/plain; charset:utf-8"
15
+ }
16
+ });
13
17
  }
@@ -9,5 +9,9 @@ export const GET:APIRoute = async ({site, locals}) => {
9
9
 
10
10
  // console.log(resdata);
11
11
 
12
- return new Response(resdata);
12
+ return new Response(resdata, {
13
+ headers: {
14
+ "Content-Type": "text/plain; charset:utf-8"
15
+ }
16
+ });
13
17
  }
@@ -7,5 +7,9 @@ Sitemap: ${sitemapURL.href}
7
7
 
8
8
  export const GET:APIRoute = ({site, locals}) => {
9
9
  const sitemapURL = new URL((locals.base ? locals.base + '/' : '/')+'sitemap.xml', site);
10
- return new Response(getRobotsTxt(sitemapURL));
10
+ return new Response(getRobotsTxt(sitemapURL), {
11
+ headers: {
12
+ "Content-Type": "text/plain; charset:utf-8"
13
+ }
14
+ });
11
15
  }
@@ -11,5 +11,9 @@ export const GET:APIRoute = async ({site, locals}) => {
11
11
  }
12
12
 
13
13
 
14
- return new Response(sitemaptxt);
14
+ return new Response(sitemaptxt, {
15
+ headers: {
16
+ "Content-Type": "text/plain; charset:utf-8"
17
+ }
18
+ });
15
19
  }