- 02 May, 2017 5 commits
-
-
Matthew Holt authored
This reverts commit e0ed7093.
-
Matthew Holt authored
-
Matt Holt authored
* httpserver/all: Clean up and standardize request URL handling The HTTP server now always creates a context value on the request which is a copy of the request's URL struct. It should not be modified by middlewares, but it is safe to get the value out of the request and make changes to it locally-scoped. Thus, the value in the context always stores the original request URL information as it was received. Any rewrites that happen will be to the request's URL field directly. The HTTP server no longer cleans /sanitizes the request URL. It made too many strong assumptions and ended up making a lot of middleware more complicated, including upstream proxying (and fastcgi). To alleviate this complexity, we no longer change the request URL. Middlewares are responsible to access the disk safely by using http.Dir or, if not actually opening files, they can use httpserver.SafePath(). I'm hoping this will address issues with #1624, #1584, #1582, and others. * staticfiles: Fix test on Windows @abiosoft: I still can't figure out exactly what this is for.
😅 * Use (potentially) changed URL for browse redirects, as before * Use filepath.ToSlash, clean up a couple proxy test cases * Oops, fix variable name -
Matt Holt authored
internal: inherit original ResponseWriter's interfaces
-
Tw authored
Signed-off-by: Tw <tw19881113@gmail.com>
-
- 01 May, 2017 3 commits
-
-
Toby Allen authored
* Raise syntax error if no '/' prefix to rewrite. Added Tests * fix case where to keyword is used. * Fixed spelling issue * Changes to use Errf rather than new Err function * Remove new RewritePathErr Function
-
Matt Holt authored
Bugfix for issue #1628 where `Caddyfile` is not being hidden correctly
-
Simon Lightfoot authored
Added test case to check if Caddyfile is added to HiddenFiles correctly.
-
- 30 Apr, 2017 5 commits
-
-
Matt Holt authored
proxy: recognize client's cancellation
-
Matt Holt authored
Context: add Push action
-
Matt Holt authored
lint fixes
-
Tw authored
fix issue #1589 Signed-off-by: Tw <tw19881113@gmail.com>
-
Aaron Ellington authored
-
- 29 Apr, 2017 2 commits
-
-
Matthew Holt authored
-
Matthew Holt authored
-
- 27 Apr, 2017 1 commit
-
-
Tw authored
Signed-off-by: Tw <tw19881113@gmail.com>
-
- 26 Apr, 2017 5 commits
-
-
AJ ONeal authored
* update to match same paths as systemd * update to match new launchd plist * generated from scratch with LaunchControl, flawless Had some issues with the previous go and found LaunchControl which made it easy to generate a perfectly correct launchd conf * Update README.md
-
Matthew Holt authored
-
Francis Lavoie authored
* Strip brackets in IsInternal if no port, allow loopback for CA URLs * Fix a mistake * Improve the trim * Fix comment
-
emersion authored
-
Tw authored
* gzip: add benchmark Signed-off-by: Tw <tw19881113@gmail.com> * gzip: pool gzip.Writer to reduce allocation Signed-off-by: Tw <tw19881113@gmail.com>
-
- 25 Apr, 2017 2 commits
-
-
Matthew Holt authored
-
Matthew Holt authored
-
- 23 Apr, 2017 1 commit
-
-
Matthew Holt authored
-
- 22 Apr, 2017 3 commits
-
-
Matthew Holt authored
-
Matthew Holt authored
-
Matthew Holt authored
Also disable some tests on context.Hostname because they're not portable
-
- 21 Apr, 2017 3 commits
-
-
Matthew Holt authored
-
Matt Holt authored
proxy: take original URL path into account when remove prefix ("without")
-
Tw authored
fix issue #1604 Signed-off-by: Tw <tw19881113@gmail.com>
-
- 20 Apr, 2017 3 commits
-
-
Matthew Holt authored
-
Matt Holt authored
httpserver: Don't close stdout or stderr when closing logs (fix #1471)
-
Jonas Östanbäck authored
* Disable warning for insecure CA if located on private network. * Add IsPrivateNetwork function * Add tests Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Add more testcases Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com> * Rename IsPrivateNetwork -> IsInternal Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
-
- 19 Apr, 2017 2 commits
-
-
Matt Holt authored
templates: Add Hostname template action
-
Jannick Fahlbusch authored
This adds the ability to display the remote hostname of the visitors IP with template actions.
-
- 18 Apr, 2017 5 commits
-
-
Matthew Holt authored
-
Matt Holt authored
template: add test for custom function
-
Tw authored
Signed-off-by: Tw <tw19881113@gmail.com>
-
Matt Holt authored
template: support custom functions
-
Tw authored
Signed-off-by: Tw <tw19881113@gmail.com>
-