Skip to content

Commit b531f62

Browse files
committed
Use content-type header in templates
Signed-off-by: itowlson <ivan.towlson@fermyon.com>
1 parent 797569b commit b531f62

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/http-js/content/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ export async function handleRequest(request) {
22

33
return {
44
status: 200,
5-
headers: { "foo": "bar" },
5+
headers: { "content-type": "text/plain" },
66
body: "Hello from JS-SDK"
77
}
88
}

templates/http-ts/content/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { HandleRequest, HttpRequest, HttpResponse } from "@fermyon/spin-sdk"
33
export const handleRequest: HandleRequest = async function (request: HttpRequest): Promise<HttpResponse> {
44
return {
55
status: 200,
6-
headers: { "foo": "bar" },
6+
headers: { "content-type": "text/plain" },
77
body: "Hello from TS-SDK"
88
}
99
}

0 commit comments

Comments
 (0)