93b301372b
rewrite: Fix a lint suggestion
2016-01-06 22:23:18 -07:00
ce4981d046
Merge branch 'master' into letsencryptfix
...
# Conflicts:
# caddy/letsencrypt/letsencrypt.go
# caddy/letsencrypt/letsencrypt_test.go
2016-01-06 22:21:15 -07:00
6d49392602
Improve tests, fix a few lint warnings
2016-01-06 16:04:33 -07:00
0a04fa40f4
Oops. status code check should be after all validations.
2016-01-02 08:08:55 +01:00
48d7f1ead2
Refactor. Stop useless rewrite if status code is set.
2016-01-01 07:05:30 +01:00
be2f5c4b38
Support for 4xx status codes.
2015-12-31 23:19:11 +01:00
281007c482
Merge remote-tracking branch 'upstream/master' into rewrite-patch
2015-12-31 20:34:25 +01:00
b6326d402d
Fix for case-insensitive header replacements ( #476 )
2015-12-31 12:31:30 -07:00
e2a3ec4c3d
Replacer supports case-insensitive header placeholders ( fixes #476 )
2015-12-31 12:12:16 -07:00
55f69fd742
Add not_has and not_match conditions.
2015-12-31 20:10:42 +01:00
3c086fb2e6
Support for rewrite match group.
2015-12-30 21:47:37 +01:00
7dadcd5834
Add ability to set custom values.
2015-12-30 20:42:03 +01:00
73327e784d
Merge branch 'master' into replacer-patch
2015-12-30 20:26:11 +01:00
bb23f68a43
Merge pull request #463 from abiosoft/rewrite-improvements
...
Rewrite improvements
2015-12-30 19:42:13 +01:00
168723a026
Added escaped versions of uri, query and path.
2015-12-24 09:00:10 +01:00
92bd914418
Fix vet errors.
2015-12-23 13:23:43 +01:00
9110dc4745
Refactor. Tests and tests data.
2015-12-23 12:11:11 +01:00
1ed786f836
Cleanups and panic prevention in tests.
2015-12-23 09:36:00 +01:00
4d5bc9fa6c
Backward compatibility ensured.
2015-12-23 09:02:52 +01:00
98d8c0f81b
Added new rewrite features.
2015-12-22 23:19:22 +01:00
9e163a655d
Use proper struct constructors instead.
2015-12-22 14:43:48 +01:00
4d867e848b
Markdown: Fix panic on sitegen for request dependent template values.
2015-12-22 13:32:27 +01:00
55d22f4ead
Merge remote-tracking branch 'upstream/master'
2015-12-21 20:49:01 +01:00
3f787a20e3
Merge pull request #438 from captncraig/patch-1
...
Gzip: Append to Vary header instead of replacing.
2015-12-21 20:48:03 +01:00
f639d3cd68
FastCGI: Close client connections when done.
2015-12-21 11:57:20 +01:00
a946d65fe6
Oops. Tests.
2015-12-18 21:25:06 +01:00
f04ff063ed
Gzip: Fix missing gzip encoding headers.
2015-12-18 20:58:23 +01:00
34d3cd7c92
Gzip: Append to Vary header instead of replacing.
2015-12-15 08:56:44 -07:00
f11cd4d9dd
Merge pull request #429 from abiosoft/php-error-log
...
fastcgi: separate standard and error output responses.
2015-12-14 10:14:52 -07:00
3966936bd6
Remove trailing new line for cleaner log output.
...
Return correct status code.
2015-12-13 12:58:21 +01:00
b7fd1f4e9e
FastCGI: separate standard and error output responses.
2015-12-12 14:04:48 +01:00
b65ddbc750
Merge remote-tracking branch 'upstream/master'
2015-12-10 02:37:19 +01:00
2e295b51b3
Use channel instead for a synchronous interval.
2015-12-09 20:18:18 +01:00
59dbea768c
Fix race condition on AppVeyor. Increase timeout a bit.
2015-12-09 19:22:20 +01:00
a44d59f1e5
Use ioutil.Discard instead for unneeded bytes.
2015-12-09 18:44:25 +01:00
23631cfaca
Fix deleted Content-Length header bug.
2015-12-08 12:01:24 +01:00
8631f33940
remove minor ugly parenthesis
2015-12-07 23:27:57 +01:00
ab5087e215
Gzip: support for min_length.
2015-12-07 23:17:05 +01:00
fd14f257df
markdown: Add (currently failing) test for empty body
2015-12-02 17:09:43 -07:00
6f4835f91a
Markdown: Fix "metadata not closed" bug. More tests.
2015-12-03 00:41:12 +01:00
ef2ca1da3d
Merge pull request #357 from tw4452852/my_md
...
markdown: fix json front matter parse issue when body content is long
2015-11-27 00:07:19 -07:00
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
016344bae7
Rewrite: Use middleware.Replacer for simple rule.
2015-11-24 12:20:39 +01:00
1fb66d534a
Close proxy's backend request earlier when re-connecting for websocket
2015-11-21 20:03:46 +01:00
f0b1edaf8c
Fix proxy for websocket with altered Host header
2015-11-21 20:00:44 +01:00
b9244cdf2e
templates: Another context fix when host header is missing port
2015-11-17 14:35:18 -07:00
1d47e590e5
proxy: Make headers when upstream is created; avoid potential nil ptr deref
2015-11-17 10:18:13 -07:00
280ba9db85
Merge pull request #345 from tw4452852/my_proxy
...
proxy: make http header block scoped
2015-11-17 08:20:29 -07:00
a5b117fcdf
proxy: make tests workable when offline
...
Instead of accessing the google website, we setup a local server
for test, then tests will work fine even we are offline.
Fix issue #346
Signed-off-by: Tw <tw19881113@gmail.com >
2015-11-17 15:18:02 +08:00
f56d2090b6
proxy: make http header block scoped
...
Each proxy block should could specify its own http header
instead of sharing a global one.
Fix issue #341
Signed-off-by: Tw <tw19881113@gmail.com >
2015-11-17 14:07:32 +08:00