summaryrefslogtreecommitdiff
path: root/std/http/file_server.ts
AgeCommit message (Collapse)Author
2021-02-02chore: remove std directory (#9361)Casper Beyer
This removes the std folder from the tree. Various parts of the tests are pretty tightly dependent on std (47 direct imports and 75 indirect imports, not counting the cli tests that use them as fixtures) so I've added std as a submodule for now.
2021-01-17chore: Enforce ban-untagged-todo lint rule (#9135)Bartek Iwańczuk
2021-01-10update copyright to 2021 (#9081)Ryan Dahl
2020-11-26fix(std/http): prevent path traversal (#8474)sarahdenofiletrav
Fix path traversal problem when the request URI does not have a leading slash. The file server now returns HTTP 400 when requests lack the leading slash, and are not absolute URIs. (https://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html).
2020-11-19docs(std): add missing jsdoc comments to exported functions (#8442)William Perron
includes: - http/file_server.ts - testing/_diff.ts - testing/asserts.ts Relates to #7487
2020-10-27fix: path traversal in std/http/file_server.ts (#8134)Luca Casonato
2020-10-26fix(std/http/file_server): File server should ignore query params (#8116)uki00a
2020-09-27feat(fmt): Sort named import and export specifiers (#7711)David Sherret
2020-08-12feat(std/http): add --no-dir-listing flag to file_server (#6808)木杉
2020-08-12feat(std): added TLS serve abilities to file_server (#6962)Alberto Ricart
2020-07-14Use dprint for internal formatting (#6682)David Sherret
2020-06-27fix(std/http): Catch errors on file_server response.send (#6285)Jim van der Voort
2020-06-12refactor: Don't destructure the Deno namespace (#6268)Nayeem Rahman
2020-06-12make std deno-lint clean (#6240)Ryan Dahl
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-06-07refactor(std): remove testing dependencies from non-test code (#5838)Chris Knight
2020-06-03fix(std/http/file_server): args handling only if invoked directly (#5989)matheus
2020-06-01fix(std/http): file server not closing files (#5952)simwipado
2020-05-27Fix shebangs (#5898)Stephan Seidt
2020-05-27Add wasm to media types (#5896)Stephan Seidt
2020-05-21fix(std/http): file_server's target directory (#5695)moyinzi
2020-05-14Add .css to the MEDIA_TYPES. (#5367)Mike Nikles
2020-05-11BREAKING: There is no public Rust API for the CLI (#5226)Ryan Dahl
2020-05-01BREAKING: feat(cli/installer): Support guessing the executable name (#5036)Nayeem Rahman
2020-05-01fix(std/http): avoid directly modifying the headers object (#5024)木杉
2020-04-29make camel case readDir, readLink, realPath (#4995)Ryan Dahl
2020-04-29BREAKING: Include limited metadata in 'DirEntry' objects (#4941)Bert Belder
This change is to prevent needed a separate stat syscall for each file when using readdir. For consistency, this PR also modifies std's `WalkEntry` interface to extend `DirEntry` with an additional `path` field.
2020-04-16refactor(cli/js/ops/fs): Improve readdir() and FileInfo interfaces (#4763)Nayeem Rahman
2020-04-07file_server: use text/typescript instead of application/typescript (#4620)木杉
I just tried it and found that using application/typescript, the browser will download the file directly, I think that .ts should be mapped to application/javascript or text/typescript
2020-04-03Remove /std/media_types (#4594)Ryan Dahl
2020-04-01fix(file_server): use media_types for Content-Type header (#4555)Khải
2020-03-28Update to Prettier 2 and use ES Private Fields (#4498)Kitson Kelly
2020-03-20Add require-await lint rule (#4401)Samrith Shankar
2020-03-16refactor: add no-return-await lint rule (#4384)Bartek Iwańczuk
2020-03-14BREAKING CHANGE FileInfo.len renamed to FileName.size (#4338)dubiousjim
2020-03-06Rename readDir -> readdir (#4225)dubiousjim
2020-02-26refactor(std/http): move io functions to http/io.ts (#4126)Yusuke Sakurai
2020-02-24rename Deno.Err -> Deno.errors (#4093)Bartek Iwańczuk
2020-02-21refactor: remove unneeded ErrorKinds (#3936)Bartek Iwańczuk
2020-02-19Enable TS strict mode by default (#3899)Maximilien Mellen
Fixes #3324 Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-11fix(file_server): don't crash on "%" pathname (#3953)木杉
2020-02-07remove non-null assertion operator from std (part1) (#3900)Yusuke Sakurai
2020-01-30feat: deno install in Rust (#3806)Bartek Iwańczuk
//std/installer couldn't be removed due to bug, but it's now deprecated.
2020-01-02Happy new year! (#3578)Ry Dahl
2019-12-14Support utf8 in file_server (#3495)木杉
2019-12-14feat(file_server): add help & switch to flags (#3489)木杉
2019-12-12file_server: get file and fileInfo concurrently (#3486)Weijia Wang
2019-12-12fix: file_server swallowing permission errors (#3467)木杉
2019-12-10fix: decoding uri in file_server (#3187)AleksandrukTad
2019-12-02better html for file_server (#3423)木杉
2019-11-13Update to TypeScript 3.7 (#3275)Kitson Kelly
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273