Skip to content

Releases: patrickdappollonio/http-server

v2.5.2

24 Oct 02:34
2cd30c5
Compare
Choose a tag to compare

This update includes better handling of GOMAXPROCS, the limiter for Go runtime to perform operations such as garbage collection and goroutine parallelization.

In Layman's terms, this means that http-server now is more friendly to Kubernetes and other container environment deployments that impose limits (CPU/Memory) to http-server by properly detecting the values provided while in containerized mode.

This is automatically transparent to users and, before this patch, resource contention with the offset between the container's knowledge of limits and the actual limits being different would potentially yield less RPS handling.

Try it out and provide your feedback, it's always welcomed!

What's Changed

Full Changelog: v2.5.1...v2.5.2

v2.5.1

23 Oct 18:58
50b97ba
Compare
Choose a tag to compare

From this release forward, http-server will only generate etags for files smaller than 5 Megabytes (5 * 1024 * 1024). This value is configurable, and using a smaller value will use less RAM.

What's Changed

Full Changelog: v2.5.0...v2.5.1

v2.5.0

09 Oct 21:15
9b792e7
Compare
Choose a tag to compare

Many thanks to @muse-sisay for adding support for custom 404 handling and solving a longstanding feature request from 2021! (#7).

What's Changed

New Contributors

Full Changelog: v2.4.0...v2.5.0

v2.4.0

07 Oct 06:47
97d8e64
Compare
Choose a tag to compare

A new feature and a fix to our recent release of _redirections was updated in this release:

Redirecting on empty paths

For those of you living in the edge and already using the _redirections file, there was a bug that if a specific redirections file was crafted, some matches would incorrectly match an empty path. For example assume a URL called /docs/ with the following redirections file:

/docs/:foo /docs/:foo/overview permanent

This would incorrectly match a URL of http://example.com/docs to be redirected to http://example.com/docs//overview. We've added a test to ensure this case doesn't repeat again.

Preventing directory listing

For some mission-critical sites, using http-server truly is just a way to show your websites (HTML-made) to the world without leaking potentially important information while at it.

This release allows you to specify --disable-directory-listing in any of the configuration forms and automatically return a HTTP 404 Not Found response if you land on a directory that doesn't include an index. This will also play nicely with an upcoming feature to return a customized 404 page (and potentially returning 200 instead of 404 in those pages, to allow for SPAs to be rendered via http-server).

What's Changed

Full Changelog: v2.3.0...v2.4.0

v2.3.0

28 Sep 03:01
4738af3
Compare
Choose a tag to compare

I want to credit this release to @muse-sisay for proposing the idea of a redirections system and an early stage discussion of what the feature would look like if implemented. Thank you!

Changelog

Fixes, improvements and updates

  • 4738af3 Add link to redirections from docs collection page. (#119)
  • 868cc51 Add support for redirections (#118)
  • af68a0b Bump github.com/klauspost/compress from 1.17.9 to 1.17.10 (#117)

v2.2.0

09 Sep 06:04
80bf87b
Compare
Choose a tag to compare

This release fixes a longstanding bug with headers and etags. In a future version, I'm planning to use a file-based approach for etag matching so the middleware writes temporarily to it then it's read after to generate the actual response.

Please report any issues you might see.

Changelog

Fixes, improvements and updates

v2.1.5

09 Sep 03:44
6861c88
Compare
Choose a tag to compare

What's Changed

  • Bump github.com/go-playground/validator/v10 from 10.17.0 to 10.18.0 by @dependabot in #92
  • Bump github.com/klauspost/compress from 1.17.5 to 1.17.6 by @dependabot in #91
  • Bump github.com/yuin/goldmark from 1.6.0 to 1.7.0 by @dependabot in #90
  • Bump github.com/go-chi/chi/v5 from 5.0.11 to 5.0.12 by @dependabot in #94
  • Bump github.com/go-playground/validator/v10 from 10.18.0 to 10.19.0 by @dependabot in #96
  • Bump github.com/klauspost/compress from 1.17.6 to 1.17.7 by @dependabot in #95
  • Bump github.com/go-playground/validator/v10 from 10.19.0 to 10.20.0 by @dependabot in #101
  • Bump golang.org/x/net from 0.21.0 to 0.23.0 in the go_modules group by @dependabot in #100
  • Bump github.com/klauspost/compress from 1.17.7 to 1.17.8 by @dependabot in #99
  • Bump github.com/yuin/goldmark from 1.7.0 to 1.7.1 by @dependabot in #98
  • Bump github.com/spf13/viper from 1.18.2 to 1.19.0 by @dependabot in #103
  • Bump github.com/yuin/goldmark from 1.7.1 to 1.7.4 by @dependabot in #110
  • Bump github.com/spf13/cobra from 1.8.0 to 1.8.1 by @dependabot in #107
  • Bump github.com/go-playground/validator/v10 from 10.20.0 to 10.22.0 by @dependabot in #106
  • Bump github.com/klauspost/compress from 1.17.8 to 1.17.9 by @dependabot in #105
  • Bump github.com/go-chi/chi/v5 from 5.0.12 to 5.1.0 by @dependabot in #111
  • Bump goreleaser/goreleaser-action from 5 to 6 by @dependabot in #104
  • Add content type detection by @patrickdappollonio in #112

Full Changelog: v2.1.4...v2.1.5

v2.1.4

31 Jan 04:33
a075629
Compare
Choose a tag to compare

Changelog

Fixes, improvements and updates

  • 429f5cf Bump actions/setup-go from 4 to 5 (#81)
  • 675dda8 Bump actions/stale from 8 to 9 (#82)
  • 2aeed89 Bump github.com/go-chi/chi/v5 from 5.0.10 to 5.0.11 (#85)
  • 69647c1 Bump github.com/go-playground/validator/v10 from 10.15.5 to 10.16.0 (#75)
  • a075629 Bump github.com/go-playground/validator/v10 from 10.16.0 to 10.17.0 (#88)
  • ca98b91 Bump github.com/klauspost/compress from 1.17.0 to 1.17.1 (#71)
  • 04d54b2 Bump github.com/klauspost/compress from 1.17.1 to 1.17.3 (#77)
  • a9dbda9 Bump github.com/klauspost/compress from 1.17.3 to 1.17.4 (#79)
  • f8f1578 Bump github.com/klauspost/compress from 1.17.4 to 1.17.5 (#89)
  • 17f7ef0 Bump github.com/spf13/cobra from 1.7.0 to 1.8.0 (#76)
  • eef0e53 Bump github.com/spf13/viper from 1.17.0 to 1.18.2 (#84)
  • 51dece7 Bump github.com/yuin/goldmark from 1.5.6 to 1.6.0 (#73)
  • edb7f42 Bump go.abhg.dev/goldmark/mermaid from 0.4.0 to 0.5.0 (#74)
  • 75899b2 Bump golang.org/x/net from 0.15.0 to 0.17.0 (#78)
  • 70a25e7 Bumps crypto version to 0.17. (#87)
  • 9cfde1b Update .goreleaser.yml

v2.1.3

13 Oct 00:10
e961130
Compare
Choose a tag to compare

Changelog

  • 01ff93f Bump actions/checkout from 3 to 4 (#61)
  • a3aac32 Bump actions/setup-go from 3 to 4 (#38)
  • a7ab9ed Bump actions/stale from 7 to 8 (#37)
  • db43b4c Bump docker/login-action from 2 to 3 (#65)
  • f0a5727 Bump github.com/go-chi/chi/v5 from 5.0.8 to 5.0.10 (#54)
  • 253f0e4 Bump github.com/go-playground/validator/v10 from 10.12.0 to 10.13.0 (#46)
  • 47e106f Bump github.com/go-playground/validator/v10 from 10.13.0 to 10.14.0 (#47)
  • 5d9b8e7 Bump github.com/go-playground/validator/v10 from 10.14.0 to 10.14.1 (#50)
  • dc1b80d Bump github.com/go-playground/validator/v10 from 10.14.1 to 10.15.4 (#62)
  • 4223232 Bump github.com/go-playground/validator/v10 from 10.15.4 to 10.15.5 (#68)
  • 0f841e8 Bump github.com/klauspost/compress from 1.16.4 to 1.16.5 (#45)
  • b8aea62 Bump github.com/klauspost/compress from 1.16.5 to 1.16.6 (#51)
  • 1240243 Bump github.com/klauspost/compress from 1.16.6 to 1.16.7 (#53)
  • 94d64bf Bump github.com/klauspost/compress from 1.16.7 to 1.17.0 (#66)
  • 3bdc875 Bump github.com/spf13/viper from 1.15.0 to 1.16.0 (#49)
  • 9a8feb1 Bump github.com/spf13/viper from 1.16.0 to 1.17.0 (#69)
  • a312873 Bump github.com/yuin/goldmark from 1.5.4 to 1.5.5 (#55)
  • 0021811 Bump github.com/yuin/goldmark from 1.5.5 to 1.5.6 (#57)
  • 7e05803 Bump goreleaser/goreleaser-action from 4 to 5 (#64)
  • e961130 Bump to Go 1.21.3 (#70)
  • 65ac50d Configure dependabot instead of Renovate (#36)
  • 0e22756 Update Dockerfile: swap order of operations to prevent buildkit's bug (#67)
  • 8d7b0f5 Update major dependencies, improve etag, add gzip compression. (#44)

v2.1.2

04 Apr 23:54
1fb2d56
Compare
Choose a tag to compare

Changelog

  • 098ad5c Fix clean goreleaser. (#33)
  • 1fb2d56 Fixes ETag header generation and status code handling. (#35)