Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danopia committed May 1, 2021
1 parent 386ef17 commit 2afa6f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion generation/deploy/generations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class ModuleGenerator {

export const Generations = new Map<string, ModuleGenerator>([
['v0.1', new ModuleGenerator(
'https://deno.land/x/aws_api@v0.3.1',
'https://deno.land/x/aws_api@v0.4.0',
'v2.895.0',
(config, opts) => new LatestCodeGen(config, opts),
)],
Expand Down
4 changes: 1 addition & 3 deletions generation/deploy/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Generations, LatestGeneration, ModuleGenerator } from "./generations.ts
addEventListener("fetch", async (event) => {
const request = (event as any).request as Request;
const response = await handleRequest(request).catch(renderError);
response.headers.set("server", "aws_api-generation/v0.3.1");
response.headers.set("server", "aws_api-generation/v0.4.0");
(event as any).respondWith(response);
});

Expand Down Expand Up @@ -100,15 +100,13 @@ ${escape(apiText)}
`, {
status: 200,
headers: {
"server": "aws_api-generation/v0.3.1",
"content-type": "text/html; charset=utf-8",
}});
}

return new Response(apiText, {
status: 200,
headers: {
"server": "aws_api-generation/v0.3.1",
"content-type": wantsHtml ? "text/plain; charset=utf-8" : "application/x-typescript",
}});
}
Expand Down

0 comments on commit 2afa6f6

Please sign in to comment.