diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2018-12-31 10:06:06 +0100 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2018-12-31 09:06:05 +0000 |
| commit | b65727734e8dfdfd1be79dee79c25520858d712e (patch) | |
| tree | f6895142a415680af120cd97a30590f07f05fa81 /net/file_server_test.ts | |
| parent | 95e378a28b0e0ba1d05f2a41bc27a7368aac66f4 (diff) | |
Add content-type header to file_server (denoland/deno_std#47)
Original: https://github.com/denoland/deno_std/commit/ab27371a012e505ca5d6c7185b4944b2f146b145
Diffstat (limited to 'net/file_server_test.ts')
| -rw-r--r-- | net/file_server_test.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/file_server_test.ts b/net/file_server_test.ts index b751b1145..40bec1c4b 100644 --- a/net/file_server_test.ts +++ b/net/file_server_test.ts @@ -25,6 +25,7 @@ export function runTests(serverReadyPromise: Promise<any>) { const res = await fetch("http://localhost:4500/.travis.yml"); assert(res.headers.has("access-control-allow-origin")); assert(res.headers.has("access-control-allow-headers")); + assertEqual(res.headers.get("content-type"), "text/yaml"); const downloadedFile = await res.text(); const localFile = new TextDecoder().decode(await readFile("./.travis.yml")); assertEqual(downloadedFile, localFile); |
