Peter Hellberg
33fa29fda0
extensions: Initial tests
2015-07-10 12:05:06 -06:00
Matthew Holt
c82d7c2dd2
templates: Better error handling for missing files
2015-07-06 23:37:27 -06:00
Abiola Ibrahim
d4f0ac2303
Merge remote-tracking branch 'upstream/master'
2015-07-06 06:43:02 +01:00
Abiola Ibrahim
4588812d24
Gzip: Fix wildcard extension bug.
2015-07-06 06:36:48 +01:00
Matthew Holt
9467dbdd40
Fix errors tests
2015-07-05 23:23:35 -06:00
Matthew Holt
71c4fdbc85
errors: Prepend timestamp to log entry
2015-07-05 23:20:37 -06:00
Matthew Holt
b5579ca910
gzip: Remove mimes
2015-07-03 18:13:30 -06:00
Matthew Holt
32ef35b952
gzip: Fix tests
2015-07-01 19:05:31 -06:00
Matthew Holt
abf22909f1
gzip: Make it gzip again
2015-07-01 18:56:30 -06:00
Matt Holt
263fa064cd
Merge pull request #169 from abiosoft/master
...
git: Remove from core (available as add-on)
2015-07-01 11:44:49 -06:00
Matthew Holt
915172e9ef
templates: Close files after done including them
2015-07-01 11:36:37 -06:00
Matthew Holt
4d066b7e30
ext: Only append extension if request is not for directory ( fixes #173 )
2015-07-01 11:35:52 -06:00
Abiola Ibrahim
a7f0705bcf
Merge remote-tracking branch 'upstream/master'
2015-07-01 14:01:45 +01:00
Matthew Holt
7a42e60bcb
templates: Support for nested include files
...
i.e. included files are also parsed as templates
2015-06-30 18:21:18 -06:00
Abiola Ibrahim
aecdecbdf8
Merge remote-tracking branch 'upstream/master'
2015-06-30 17:31:40 +01:00
Abiola Ibrahim
4240817a3a
Fix for Issue 141: index not found, 502 Bad Gateway.
2015-06-30 11:54:50 +01:00
Abiola Ibrahim
3f1f6720ee
Decouple git middleware from caddy core. Now available as an add-on at https://github.com/abiosoft/caddy-git .
2015-06-28 00:31:52 +01:00
Matt Holt
47096e112a
Merge pull request #156 from pyed/sort
...
browse: Ability to sort
2015-06-22 12:40:58 -06:00
pyed
68add78230
Implement sorting functionality for "Browse"
2015-06-21 18:04:47 +03:00
Matt Holt
6b27d4ce11
Merge pull request #131 from slav123/master
...
fastcgi: fix #127
2015-06-17 17:26:52 -06:00
Slawomir Jasinski
f11e136068
Update fcgiclient.go
2015-06-18 09:12:35 +10:00
Matthew Holt
c811d416a7
log: Customizable default error function
2015-06-15 10:17:09 -06:00
Simon Jefford
6c1f2af53a
log: ensure the correct status is always logged
...
in the case of error (>=400) then no response may have been sent
2015-06-14 21:00:27 +01:00
Matt Holt
d7051e986f
Merge pull request #134 from tw4452852/hijack
...
middleware: let middleware.responseRecorder be a http.Hijacker
2015-06-12 08:26:49 -06:00
Tw
e79a88856a
let middleware.responseRecorder be a http.Hijacker
...
Signed-off-by: Tw <tw19881113@gmail.com>
2015-06-12 11:42:28 +08:00
Slawomir Jasinski
db2368cd0b
Removed parentheses #127
2015-06-12 11:33:55 +10:00
slav123
29404e34d9
code cleanup
2015-06-11 13:17:56 +10:00
Slawomir Jasinski
14b64fef43
fix #127
...
fixes issue with Status header coming from php-fpm 5.5 different then regular "HTTP/1.1 200 OK".
If server returns Status code - "200" will be handled properly instead "throwing runtime error: index out of range"
2015-06-11 09:59:30 +10:00
Abiola Ibrahim
e0f10c2b03
Gzip: Accept MIME types.
2015-06-10 22:02:08 +01:00
Matt Holt
01aca02edc
Merge pull request #129 from tw4452852/rename_internal
...
internal: rename middleware's package name from `internal` to `inner`
2015-06-10 08:04:27 -06:00
Tw
90921a9deb
rename middleware's name from internal
to inner
...
The internal package has the special meaning in go
(see https://golang.org/s/go14internal ).
So rename it to `inner`.
Signed-off-by: Tw <tw19881113@gmail.com>
2015-06-10 15:48:41 +08:00
AJ ONeal
d6a7dfc1a5
add ability to do meta redirects
...
Proper Location redirects are disadvantageous in some situations.
For example, you may want a developer to know that a resource is available
via https, but you don't want an insecure call to the API to succeed.
2015-06-10 05:48:40 +00:00
Matt Holt
3a795de828
Merge pull request #117 from zmb3/errorfmt
...
Update error strings (start with lowercase letters)
2015-06-09 08:24:08 -06:00
Tw
b717e6f2d8
Add unit test for errors middleware
...
Signed-off-by: Tw <tw19881113@gmail.com>
2015-06-09 15:24:53 +08:00
Zac Bergquist
3aff1677cc
Fix failing test that's looking for a specific error message.
2015-06-08 20:29:48 -04:00
Zac Bergquist
9e97d79c81
Ensure that proper names are capitalized in error strings.
2015-06-08 17:35:16 -04:00
Zac Bergquist
41e1f1ffa5
Update error strings (start with lowercase letters)
2015-06-07 20:49:17 -04:00
Abiola Ibrahim
c42e60a3d2
Git: fix for data races.
2015-06-07 20:39:24 +01:00
Abiola Ibrahim
13db60d382
rename gzip test function to TestGzipHandler
2015-06-07 01:27:36 +01:00
Abiola Ibrahim
c9233d7446
Gzip: Added compression level, extension and path filters.
2015-06-07 01:21:54 +01:00
Abiola Ibrahim
820b2af43a
FastCGI: allow "unix:" prefix for unix sockets.
2015-06-04 23:03:58 +01:00
Matt Holt
1cb0053720
Merge pull request #102 from brk0v/proxy-without
...
proxy: Add "without" option
2015-06-04 08:24:48 -06:00
Viacheslav Biriukov
822a615c6c
rollback tests
2015-06-04 14:02:52 +00:00
Viacheslav Biriukov
593557659c
fix tests and change naming
2015-06-04 13:57:39 +00:00
xenolf
b4780a41d3
Added webhook functionality to the git middleware.
...
The webhook providers reside behind a small interface which determines if
a provider should run. If a provider should run it delegates
responsibility of the request to the provider.
ghdeploy initial commit
Added webhook functionality to the git middleware.
The webhook providers reside behind a small interface which determines if a provider should run. If a provider should run it delegates responsibility of the request to the provider.
Add tests
Remove old implementation
Fix inconsistency with git interval pulling.
Remove '\n' from logging statements and put the initial pull into a startup function
2015-06-04 03:24:16 +02:00
Viacheslav Biriukov
4790dacbf7
add without to proxy middleware
2015-06-03 18:06:24 +00:00
Matthew Holt
9ce0e8e17c
proxy: Added tests for reverse websocket proxy
2015-06-01 22:39:53 -06:00
Matthew Holt
32825e8a79
basicauth: Patch timing vulnerability
2015-06-01 20:33:07 -06:00
Austin
68cd4bdeab
check server response instead of client
2015-06-01 19:29:32 -07:00
Austin
ccd3e55b32
changes as noted in PR
2015-06-01 10:23:57 -07:00