Skip to content

Commit

Permalink
Use content-type header in templates
Browse files Browse the repository at this point in the history
Signed-off-by: itowlson <[email protected]>
  • Loading branch information
itowlson committed Oct 27, 2023
1 parent 797569b commit b531f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/http-js/content/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export async function handleRequest(request) {

return {
status: 200,
headers: { "foo": "bar" },
headers: { "content-type": "text/plain" },
body: "Hello from JS-SDK"
}
}
2 changes: 1 addition & 1 deletion templates/http-ts/content/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { HandleRequest, HttpRequest, HttpResponse } from "@fermyon/spin-sdk"
export const handleRequest: HandleRequest = async function (request: HttpRequest): Promise<HttpResponse> {
return {
status: 200,
headers: { "foo": "bar" },
headers: { "content-type": "text/plain" },
body: "Hello from TS-SDK"
}
}

0 comments on commit b531f62

Please sign in to comment.