- 15 Oct, 2015 3 commits
-
-
Matthew Holt authored
startup and shutdown commands should only be executed once per appearance in the Caddyfile (naturally meaning once per server block). Notice that we support multiple occurrences of startup and shutdown in the same server block by building the callback array incrementally as we parse the Caddyfile, then we append all the callbacks all at once. Quite literally, the OncePerServerBlock function executes only once per server block!
-
Matthew Holt authored
If each server block had only one sync.Once then all directives would refer to it and only the first directive would be able to use it! So this commit changes it to a map of sync.Once instances, keyed by directive. So by creating a new map for every server block, each directive in that block can get its own sync.Once which is exactly what is needed. They won't step on each other this way.
-
Matthew Holt authored
Turns out having each server block share a single server.Config during initialization when the Setup functions are being called was a bad idea. Sure, startup and shutdown functions were only executed once, but they had no idea what their hostname or port was. So here we revert to the old way of doing things where Setup may be called multiple times per server block (once per host associated with the block, to be precise), but the Setup functions now know their host and port since the config belongs to exactly one virtualHost. To have something happen just once per server block, use OncePerServerBlock, a new function available on each Controller.
-
- 13 Oct, 2015 3 commits
-
-
Matthew Holt authored
-
Matt Holt authored
Distinguish between windows and linux builds
-
Matthew Holt authored
-
- 11 Oct, 2015 4 commits
-
-
Matt Holt authored
Ran gofmt -s, fixed some golint warnings, refactored some large functions Minor quality improvements (closes #253)
-
Zac Bergquist authored
-
Matt Holt authored
Add tests for root.go
-
Matthew Holt authored
... I think. Submitting as PR to double-check. This change changes file mod times on the testdata to ensure they are not all the same so that the sort is predictable!
-
- 10 Oct, 2015 1 commit
-
-
Makpoc authored
-
- 09 Oct, 2015 3 commits
-
-
Matt Holt authored
browse: Better test coverage and fix #264
-
makpoc authored
-
Karthic Rao authored
Exhaustive test coverage to test the usage of sort,order and limit parameter for the browse middleware
-
- 08 Oct, 2015 1 commit
-
-
Matthew Holt authored
-
- 07 Oct, 2015 2 commits
- 01 Oct, 2015 3 commits
-
-
Matthew Holt authored
-
Matthew Holt authored
-
Matt Holt authored
New core middleware, MIME.
-
- 30 Sep, 2015 2 commits
-
-
Abiola Ibrahim authored
-
Matthew Holt authored
And added tests for status code and scheme
-
- 29 Sep, 2015 1 commit
-
-
Matthew Holt authored
Turns out the stuff in the test file needs to be exported so external add-ons can use them
-
- 28 Sep, 2015 5 commits
-
-
Matthew Holt authored
-
Matthew Holt authored
-
Matt Holt authored
fastcgi: Stripping PATH_INFO from SCRIPT_NAME
-
Mathias Beke authored
Conflicts: middleware/fastcgi/fastcgi.go
-
Matthew Holt authored
-
- 25 Sep, 2015 3 commits
-
-
Matt Holt authored
core: change to new http2 repo
-
Tobias Breitwieser authored
The golang.org/x/net/http2 is now the official http2 repo. It is advised to change the imports to it.
-
Mathias Beke authored
-
- 24 Sep, 2015 3 commits
-
-
Matthew Holt authored
Also updated change list and added/improved tests
-
Matthew Holt authored
-
Matthew Holt authored
-
- 23 Sep, 2015 1 commit
-
-
Matt Holt authored
rewrite: Use middleware.Replacer
-
- 22 Sep, 2015 1 commit
-
-
Matthew Holt authored
-
- 20 Sep, 2015 4 commits
-
-
Abiola Ibrahim authored
-
Matthew Holt authored
-
Abiola Ibrahim authored
Bug fix for regexps starting with '/'.
-
Matthew Holt authored
-