Open
Conversation
Suggesting to remove overwriting 0.0.0.0
Related to #217
Mention process.env.PORT in options
Make it easier to find in npm
Add keyword http-server
Added https and https-server as suggested
Added a keyword in package.json
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2. - [Release notes](https://github.com/yargs/y18n/releases) - [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md) - [Commits](https://github.com/yargs/y18n/commits) Signed-off-by: dependabot[bot] <support@github.com>
Staged RC for v0.13.0
…3.2.2 Bump y18n from 3.2.1 to 3.2.2
Bumps [http-proxy](https://github.com/http-party/node-http-proxy) from 1.18.0 to 1.18.1. - [Release notes](https://github.com/http-party/node-http-proxy/releases) - [Changelog](https://github.com/http-party/node-http-proxy/blob/master/CHANGELOG.md) - [Commits](http-party/node-http-proxy@1.18.0...1.18.1) Signed-off-by: dependabot[bot] <support@github.com>
…proxy-1.18.1 Bump http-proxy from 1.18.0 to 1.18.1
Adds a flag to change the default Content-Type header value to something other than application/octet-stream. This feature may not have the demand that it would have before the internalization of ecstatic, however contentType was already managed as an option and there just wasn't a flag in front of it, so I figured I'd finish what was started. Co-authored-by: howardroark <howardroark@users.noreply.github.com>
Adds a flag which allows http-server to be used purely as a proxy without serving any files.
* feat: add 'dir-overrides-404' flag * tests: add tests * docs: update documentation --------- Co-authored-by: Eric Dubé <7225168+KernelDeimos@users.noreply.github.com>
Bumps and [glob](https://github.com/isaacs/node-glob). These dependencies needed to be updated together. Updates `glob` from 11.0.0 to 11.1.0 - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md) - [Commits](isaacs/node-glob@v11.0.0...v11.1.0) Updates `glob` from 10.4.5 to 10.5.0 - [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md) - [Commits](isaacs/node-glob@v11.0.0...v11.1.0) --- updated-dependencies: - dependency-name: glob dependency-version: 11.1.0 dependency-type: indirect - dependency-name: glob dependency-version: 10.5.0 dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
In order to utilize some web features like SharedArrayBuffer via localhost, COOP & COEP headers have to be set. Add an --coop option to let people easily opt-in to them. These are important for things like WebAssembly testing. More information can be found at: https://web.dev/cross-origin-isolation-guide/ Co-authored-by: Eric Dubé <7225168+KernelDeimos@users.noreply.github.com>
* fix: fail fast on `--password` without `--user` When passing a password without a username, http-server will launch successfully but the first request with an Authorization header will crash the server. This behavior is very inconvenient. This commit makes it fail fast instead so you know there's a problem before you log out of SSH or walk out of the house or office. Also alised `--user` to `--username` for added convenience. Resolves #935 * doc: update documentation for `--username` flag
…9110 section 15.5.17
Prerequisite to merging #826 I would like there to already be tests for timeout so that regressions can be detected.
* Fix timeout flag behavior for 0 value, negative value, and empty value. Add timeout flag to README. * add docs --------- Co-authored-by: Eric Dubé <7225168+KernelDeimos@users.noreply.github.com>
* Close server port on exit * Set up "CTRL-C" hook, before printing out "Hit CTRL-C to stop the server"
* added proxy config for complex proxy rules * fixed wrong proxy config value assignment and filtered match config * added basic documentation for proxy-config * fixed proxy config handling * added first basic proxy config test * added minmatch for glob matching * fixed proxy config handling * added proxy logging * fixed proxy config test * handled proxy all and config with hinting * fixed proxyAll request handling
…te-Network header (#801) This PR has stale tests for an older version of tap so a subsequent fix is required for the tests. Co-authored-by: Eric Dubé <7225168+KernelDeimos@users.noreply.github.com>
PR #801 was merged. This PR has tests written for an older version of `tap`, so these tests must now be updated. The breaking change in `tap` is: > `t.ifError()` => `t.error()`
* Add graceful shutdown and error handling * Add to --help switch and turn into optional (ENV variables)' * Add readme documentation * Change documentation inside --help switch * Add some tests and debugging (commented out). Currently not functional due to switch not working * Add documentation to http-server.1 file * -n switch * Fixes, commented out tests * - * Delte log files * Add log files to gitignore * Comment out all tests * Delete tests * Fixes (according to suggestion) Co-authored-by: Jade Michael Thornton <jademichael@jmthornton.net> * Remove `-n` short argument and enhance the logfile name * Apply suggestion from @KernelDeimos * Apply suggestion from @KernelDeimos --------- Co-authored-by: Octopus <66487668+J-P-S-O@users.noreply.github.com> Co-authored-by: Jade Michael Thornton <jademichael@jmthornton.net> Co-authored-by: Eric Dubé <7225168+KernelDeimos@users.noreply.github.com>
cleanup show-dir, fix node version showing as "undefined"
docs: update copyright year in LICENSE
* add --hide-permissions flag to command line * add to doc/http-server.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please ensure that your pull request fulfills these requirements:
masterbranchWhat is the purpose of this pull request? (bug fix, enhancement, new feature,...)
What changes did you make?
Provide some example code that this change will affect, if applicable:
Is there anything you'd like reviewers to focus on?
Please provide testing instructions, if applicable: