Skip to content

Commit

Permalink
Merge pull request #207 from itowlson/im-mad-as-hell-and-im-not-going…
Browse files Browse the repository at this point in the history
…-to-take-it-any-more

Use `content-type` header in templates
  • Loading branch information
itowlson authored Oct 30, 2023
2 parents 797569b + b531f62 commit 2974786
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 2974786

Please sign in to comment.