Tobias Weingartner
42b7d57421
Fix more tests, and fix template parsing.
2016-04-10 23:17:01 -07:00
Tw
c64cf218b0
http.CloseNotifier implementation for http.ResponseWriter wrapper
...
Signed-off-by: Tw <tw19881113@gmail.com>
2016-04-11 14:10:33 +08:00
Tobias Weingartner
027f697fdf
Revamp markdown processing.
...
Nuke pre-generation. This may come back in the form of a more general
caching layer at some later stage.
Nuke index generation. This should likely be rethought and re-implemented.
2016-04-10 17:47:55 -07:00
Matt Holt
6a7b777f14
panic if not a Flusher
...
Caddy recovers panics that occur in the middleware stack so this is not a risk to process termination. This way is also preferable to hiding the error. See 3faad41b43 (commitcomment-17035158)
2016-04-09 22:11:36 -06:00
Matthew Holt
67b137175e
Replaced automate.sh with Go program
2016-04-09 10:02:16 -06:00
Matthew Holt
dfa3b8645d
Who uses 32-bit Mac anyway. :P
2016-04-09 00:40:37 -06:00
Matthew Holt
2dca50dee8
Rewrite automate.sh as Go program; add init folder to release archives
...
Easier parallelism and more control over platforms we build for, but
more importantly, we can do parallel builds using the build script which
properly embeds version information into the binaries. We also produce
the archive files ourselves and in parallel rather than using external
tar and zip commands.
2016-04-09 00:21:55 -06:00
Matthew Holt
3faad41b43
middleware: ResponseRecorder now is an http.Flusher ( fixes #677 )
...
Flush every 250ms. This should keep latency somewhat low but there is
still buffering; maybe in the future we can make this configurable.
2016-04-09 00:17:15 -06:00
Matthew Holt
c21ff8343c
Apparently vet ships with Go now
2016-04-06 17:29:53 -06:00
Matt Holt
2072eec11f
Merge pull request #731 from wjkohnen/host-caseinsensitive
...
Handle host names case insensitively.
2016-04-06 15:56:34 -06:00
Wolfgang Johannes Kohnen
497ebb9ccb
Handle host names case insensitively.
...
RFC 3986 3.2.2: The host subcomponent is case-insensitive.
2016-04-06 21:36:46 +00:00
Benny Ng
e4e773c9ea
Merge pull request #730 from tpng/restart-refactor
...
Extract restartInProc to its own file
2016-04-06 11:51:44 +08:00
Benny Ng
32e63e6b94
Extract restartInProc to its own file
2016-04-06 11:40:39 +08:00
Matthew Holt
86ccafbe58
Update changes
...
Also testing commit signing again, different email this time.
2016-04-05 19:04:08 -06:00
Matthew Holt
3ef78d3db3
Allow git repo as argument to build script
...
This will help build server perform builds with copy of repo in a folder
outside the original git repo folder. Also testing signed commits on
GitHub.
2016-04-05 18:57:50 -06:00
elcore
9ec1c17846
Merge pull request #727 from mholt/rename-keytype-ec-to-p
...
Rename EC256,EC384 to P256,P384
2016-04-05 19:59:37 +02:00
Eldin Hadzic
7ababfc909
Rename EC256,EC384 to P256,P384
2016-04-05 13:37:39 +00:00
Benny Ng
31062dd6c2
Merge pull request #725 from tpng/reload-validate-caddyfile
...
revert to old Caddyfile on failed in-process restart
2016-04-05 20:07:48 +08:00
Benny Ng
b952fd8f8f
revert to old Caddyfile on failed in-process restart
2016-04-05 19:57:52 +08:00
Benny Ng
28e0bfbbbe
update README to include Docker
...
update README to include Docker container zzrot/alpine-caddy
2016-04-05 17:24:33 +08:00
Sean Kilgarriff
30ce73e8fb
updated README to include ZZROT's docker container that runs caddy on Alpine Linux inside of a Docker Container.
2016-04-05 03:11:55 -04:00
elcore
987a5f98c4
Merge pull request #723 from mholt/fix-#721
...
Fix for #721
2016-04-05 04:54:49 +02:00
Eldin Hadzic
859a93d296
Fix for #721
2016-04-04 23:59:40 +00:00
Matt Holt
a14fce0b1e
Merge pull request #707 from jupiter/caching-headers
...
Add Etag header
2016-04-03 15:01:33 -06:00
Matt Holt
25b567b301
Merge pull request #715 from mholt/elcore-faster-tests
...
https: Faster tests
2016-04-03 14:33:03 -06:00
Matt Holt
3d066789d3
Merge pull request #713 from 5an1ty/patch-1
...
proxy: Allow mixed case Upgrade headers (WebSocket fix)
2016-04-03 14:30:32 -06:00
Pieter Raubenheimer
93d982a5a4
Improve readability and fully comply with RFC7232
2016-04-03 20:14:10 +01:00
Pieter Raubenheimer
572b9e4d67
Merge branch 'master' into caching-headers
2016-04-03 19:59:25 +01:00
elcore
2a82f7b520
Faster tests
2016-04-03 20:06:21 +02:00
Ruben Callewaert
1a9f700287
Allow mixed case Upgrade headers
...
Caddy expects websocket to be completely lowercase.
Some applications send websocket upgrade headers like the following:
`Upgrade: WebSocket`
This change allows all variations of websocket.
2016-04-03 17:48:53 +02:00
Matt Holt
462128cd80
Merge pull request #706 from elcore/patch-3
...
tls: Customize key type with key_type
2016-04-02 13:40:49 -06:00
elcore
cf69d190a2
A new feature for the "tls" directive
2016-04-02 21:15:18 +02:00
Pieter Raubenheimer
3441cdef64
Add Etag header
2016-04-02 08:51:08 +01:00
Matt Holt
8a2f2f8d37
Merge pull request #705 from DenBeke/upstart-conf
...
dist/init: caddy.conf for upstart
2016-03-31 08:25:48 -06:00
MathiasB
86854dca89
dist/init: caddy.conf for upstart
2016-03-31 14:36:44 +02:00
Matt Holt
b3a5b725db
Merge pull request #696 from mholt/templateUtils
...
templates: Adding some useful utility functions
2016-03-28 21:17:11 -06:00
Craig Peterson
f28d8b8601
Adding some useful utility functions for templates
2016-03-28 20:53:51 -06:00
Matt Holt
5989eb0635
Merge pull request #699 from eiszfuchs/socket-url
...
proxy: fix req.URL.Path for unix sockets
2016-03-28 14:31:53 -06:00
eiszfuchs
cbd9b814b9
fixed req.URL.Path for unix: sockets
2016-03-28 22:18:14 +02:00
Matthew Holt
32dbbfd64c
Better way of checking gofmt
2016-03-28 10:52:48 -06:00
Matt Holt
3395f6c775
Merge pull request #698 from buddhamagnet/master
...
Correct unused assignments
2016-03-26 17:28:46 -06:00
buddhamagnet
61cf8b79bc
drop unused md variable
2016-03-26 21:14:54 +00:00
buddhamagnet
bb6764fd22
drop unused len variable
2016-03-26 21:14:22 +00:00
buddhamagnet
c981b08b23
correct unused assignments
2016-03-26 21:05:19 +00:00
Matthew Holt
7271b57136
Add golint and ineffassign to CI scripts
...
golint is not part of the tests since our Markdown dependency defines
an interface that is not lint-compliant (unfortunately).
See https://github.com/russross/blackfriday/issues/240
2016-03-26 14:26:12 -06:00
Matthew Holt
874bcff564
Fix YAML syntax. Sigh...
2016-03-26 09:23:05 -06:00
Matthew Holt
eb279e7e8a
Perform gofmt -s check
2016-03-26 08:53:00 -06:00
Matt Holt
f4c729bd22
Merge pull request #691 from MariadeAnton/MdA-travis-test
...
Only bypass "bandwidth limit exceeded" errors on pushes
2016-03-22 09:27:20 -06:00
María de Antón
ea35893be4
run bash dist/gitcookie.sh step only on build pushes
2016-03-22 16:15:17 +01:00
María de Antón
1efd1029dd
Only bypass "bandwidth limit exceeded" errors on pushes
2016-03-22 16:08:29 +01:00