caddy/middleware
Tw fbc18c5b85 markdown: fix json format parse issue
We can't use json meta parser's remaining buffered data as the markdown body
because it may not contain the entire original content.
Now we adopt the way like toml and yaml parser's way to extract the meta content
at first.

Also when spilting the meta data and content body, additional io.Copy is
unnecessary.

Fix issue #355

Signed-off-by: Tw <tw19881113@gmail.com>
2015-11-25 08:32:14 +08:00
..
basicauth pass golint 2015-11-05 00:40:35 +00:00
browse pass golint 2015-11-05 00:40:35 +00:00
errors Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00
extensions ext: Fix panic when URL path is empty 2015-11-10 16:04:02 -07:00
fastcgi pass golint 2015-11-05 00:40:35 +00:00
gzip gzip: added Vary: Accept-Encoding to response header. 2015-11-14 06:11:37 +09:00
headers headers: Initial test for Headers 2015-05-09 21:47:02 +02:00
inner rename middleware's name from internal to inner 2015-06-10 15:48:41 +08:00
log pass golint 2015-11-05 00:40:35 +00:00
markdown markdown: fix json format parse issue 2015-11-25 08:32:14 +08:00
mime New core middleware, MIME. 2015-09-30 18:37:10 +01:00
proxy proxy: Make headers when upstream is created; avoid potential nil ptr deref 2015-11-17 10:18:13 -07:00
redirect Commenting on the need for additional redirect tests 2015-10-01 09:58:07 -07:00
rewrite Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00
templates Add argument in new optional block in templates midd to set delimiters 2015-10-29 20:33:01 -02:00
websocket Fix go vet 2015-11-15 11:06:50 -07:00
commands_test.go Two quotes next to each other result in one escaped quote; Add Split Example, add/refactor tests for every platform. 2015-10-24 15:33:04 +03:00
commands.go Two quotes next to each other result in one escaped quote; Add Split Example, add/refactor tests for every platform. 2015-10-24 15:33:04 +03:00
context_test.go templates: Another context fix when host header is missing port 2015-11-17 14:35:18 -07:00
context.go templates: Another context fix when host header is missing port 2015-11-17 14:35:18 -07:00
fileserver_test.go pass golint 2015-11-05 00:40:35 +00:00
fileserver.go Check and return the correct error if Stat method fails (see golang issue #12991) 2015-10-21 01:25:38 +03:00
middleware_test.go Move common function into existing file 2015-10-29 10:34:47 -06:00
middleware.go Move common function into existing file 2015-10-29 10:34:47 -06:00
path.go Fix more lint warnings 2015-05-24 22:52:34 -04:00
recorder_test.go Fix formatting directives in tests 2015-09-04 08:34:58 -07:00
recorder.go let middleware.responseRecorder be a http.Hijacker 2015-06-12 11:42:28 +08:00
replacer_test.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00
replacer.go Rewrite: Use only fragment, remove frag. 2015-09-20 18:13:53 +01:00
roller.go Address various lint and gocyclo warnings. Fixes #253 2015-10-11 16:28:02 -04:00