Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
keroxp authored Aug 17, 2020
1 parent e321633 commit 7e12f15
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .denov
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.2
v1.3.0
2 changes: 1 addition & 1 deletion _version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Copyright 2019-2020 Yusuke Sakurai. All rights reserved. MIT license.
export const Version = "v1.1.1";
export const Version = "v1.1.2";
20 changes: 17 additions & 3 deletions cookie_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ group("cookieToString", ({ test }) => {
});
});

group("cookie integration", ({ setupAll, test }) => {
group({
name: "cookie integration",
}, ({ setupAll, test }) => {
const now = new Date();
now.setMilliseconds(0);
setupAll(() => {
Expand All @@ -95,11 +97,23 @@ group("cookie integration", ({ setupAll, test }) => {
maxAge: 1000,
expires: now,
});
return req.respond({ status: 200, body: "ok" });
return req.respond({
status: 200,
body: "ok",
headers: new Headers({
"Connection": "close",
}),
});
});
router.get("/deno", (req) => {
const deno = req.cookies.get("deno");
return req.respond({ status: 200, body: deno || "" });
return req.respond({
status: 200,
body: deno || "",
headers: new Headers({
"Connection": "close",
}),
});
});
const lis = router.listen({ port: 9983 });
return () => lis.close();
Expand Down
2 changes: 1 addition & 1 deletion modules-lock.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"https://deno.land/std": {
"version": "@0.63.0",
"version": "@0.65.0",
"modules": [
"/testing/asserts.ts",
"/textproto/mod.ts",
Expand Down
2 changes: 1 addition & 1 deletion modules.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"https://deno.land/std": {
"version": "@0.63.0",
"version": "@0.65.0",
"modules": [
"/testing/asserts.ts",
"/textproto/mod.ts",
Expand Down
3 changes: 3 additions & 0 deletions serve_static_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ group("serveStatic/cacheControl", (t) => {
group("serveStatic integration", (t) => {
t.setupAll(() => {
const router = createApp();
router.use((req) => {
req.responseHeaders.set("Connection", "close");
});
router.use(serveStatic("./fixtures/public"));
const l = router.listen({ port: 9988 });
return () => l.close();
Expand Down
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/async/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/async/mod.ts";
export * from "https://deno.land/std@0.65.0/async/mod.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/datetime/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/datetime/mod.ts";
export * from "https://deno.land/std@0.65.0/datetime/mod.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/encoding/utf8.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/encoding/utf8.ts";
export * from "https://deno.land/std@0.65.0/encoding/utf8.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/flags/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/flags/mod.ts";
export * from "https://deno.land/std@0.65.0/flags/mod.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/fmt/colors.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/fmt/colors.ts";
export * from "https://deno.land/std@0.65.0/fmt/colors.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/fmt/printf.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/fmt/printf.ts";
export * from "https://deno.land/std@0.65.0/fmt/printf.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/fs/exists.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/fs/exists.ts";
export * from "https://deno.land/std@0.65.0/fs/exists.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/fs/expand_glob.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/fs/expand_glob.ts";
export * from "https://deno.land/std@0.65.0/fs/expand_glob.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/hash/sha1.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/hash/sha1.ts";
export * from "https://deno.land/std@0.65.0/hash/sha1.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/http/_io.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/http/_io.ts";
export * from "https://deno.land/std@0.65.0/http/_io.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/http/http_status.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/http/http_status.ts";
export * from "https://deno.land/std@0.65.0/http/http_status.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/io/bufio.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/io/bufio.ts";
export * from "https://deno.land/std@0.65.0/io/bufio.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/io/readers.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/io/readers.ts";
export * from "https://deno.land/std@0.65.0/io/readers.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/io/writers.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/io/writers.ts";
export * from "https://deno.land/std@0.65.0/io/writers.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/mime/multipart.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/mime/multipart.ts";
export * from "https://deno.land/std@0.65.0/mime/multipart.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/path/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/path/mod.ts";
export * from "https://deno.land/std@0.65.0/path/mod.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/testing/asserts.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/testing/asserts.ts";
export * from "https://deno.land/std@0.65.0/testing/asserts.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/textproto/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/textproto/mod.ts";
export * from "https://deno.land/std@0.65.0/textproto/mod.ts";
2 changes: 1 addition & 1 deletion vendor/https/deno.land/std/ws/mod.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "https://deno.land/std@0.63.0/ws/mod.ts";
export * from "https://deno.land/std@0.65.0/ws/mod.ts";

0 comments on commit 7e12f15

Please sign in to comment.