Commit Graph

406 Commits

Author SHA1 Message Date
d8391d6fbd core: Handle address lookup and bind errors more gracefully (fixes #136 and #164)
Addresses which fail to resolve are handled more gracefully in the two most common cases: the hostname doesn't resolve or the port is unknown (like "http" on a system that doesn't support that port name). If the hostname doesn't resolve, the host is served on the listener at host 0.0.0.0. If the port is unknown, we attempt to rewrite it as a number manually and try again.
2015-06-23 22:01:37 -06:00
640cd059ce Merge pull request #165 from Karthic-Hackintosh/master
Test for webSocketParse function in config/setup
2015-06-23 20:04:07 -06:00
a78cea7d8a test for webSocketParse function in config/setup 2015-06-24 07:05:53 +05:30
7044cbbd67 Merge pull request #161 from Karthic-Hackintosh/master
Modularizing config/setup/Websocket.go and test file for the same
2015-06-23 10:06:05 -06:00
292c15cd48 Modularizing config/setup/Websocket.go and for the same 2015-06-23 14:40:27 +05:30
06a7f1d3da Merge pull request #160 from guilhermebr/master
errors: change missing errors file from error to a warning during parsing
2015-06-22 20:38:23 -06:00
efbf01b49d change from error to a warning in errors setup 2015-06-22 23:19:48 -03:00
4b349805db browse: better-looking sort order arrows 2015-06-22 15:04:22 -06:00
47096e112a Merge pull request #156 from pyed/sort
browse: Ability to sort
2015-06-22 12:40:58 -06:00
68add78230 Implement sorting functionality for "Browse" 2015-06-21 18:04:47 +03:00
ebae65b6af Merge pull request #157 from abiosoft/master
setup: export functions and variables for external packages.
2015-06-20 10:14:15 -06:00
460c0c8a42 setup: export functions and variables for external packages. 2015-06-20 14:59:33 +01:00
528d1b03f1 Merge pull request #155 from Karthic-Hackintosh/master
Tests for config/setup/internal.go
2015-06-19 12:27:43 -06:00
9d33d9d6b0 typo corrected 2015-06-19 23:54:34 +05:30
d9729b4a2e test for config/setup/internal.go 2015-06-19 23:34:54 +05:30
1db6c244bb Merge pull request #153 from Karthic-Hackintosh/master
Tests for config/setup/log.go
2015-06-19 11:35:01 -06:00
13c5d25a2e Typo corrected 2015-06-19 22:30:48 +05:30
c166261513 more test cases for the test struct 2015-06-19 19:37:48 +05:30
84998a4d19 Tests for config/setup/log.go 2015-06-19 19:15:57 +05:30
6b27d4ce11 Merge pull request #131 from slav123/master
fastcgi: fix #127
2015-06-17 17:26:52 -06:00
f11e136068 Update fcgiclient.go 2015-06-18 09:12:35 +10:00
707ea554ac Merge pull request #149 from Karthic-Hackintosh/master
ext: test for function extParse
2015-06-17 07:01:26 -06:00
65f7190030 more cases added to test struct in extParse test 2015-06-17 14:07:26 +05:30
a5a5c06716 test for function extParse written for config/setup/ext_go 2015-06-17 12:48:52 +05:30
9c832893af Merge branch 'master' of https://github.com/mholt/caddy 2015-06-17 12:46:34 +05:30
4e15901df1 solving merge conflicts 2015-06-17 12:46:12 +05:30
9a32d08e9f test for function exParse under config/setup/ext.go 2015-06-17 11:59:24 +05:30
c811d416a7 log: Customizable default error function 2015-06-15 10:17:09 -06:00
92391bfdf9 Merge pull request #135 from simonjefford/ensure_correct_log_status
log: ensure the correct status is always logged
2015-06-15 09:25:29 -06:00
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
7875f98b71 Merge pull request #138 from Karthic-Hackintosh/master
Preliminary test case for setup/config/ext.go
2015-06-13 09:01:47 -06:00
076fc4d72c Update
Update with missing assertion for the Next middleware being properly set , this makes sure that Ext middleware carries the requests to the further middlewares .
2015-06-13 20:25:23 +05:30
d7db1b9576 Added Assertions
Added assertions to check for the extensions in the order specified
2015-06-13 15:56:29 +05:30
2a166f088d Update ext_test.go 2015-06-13 10:05:42 +05:30
2175c68319 Preliminary test case for setup/config/ext.go 2015-06-13 09:54:54 +05:30
3418770fe1 Latest change list 2015-06-12 08:30:53 -06:00
d7051e986f Merge pull request #134 from tw4452852/hijack
middleware: let middleware.responseRecorder be a http.Hijacker
2015-06-12 08:26:49 -06:00
f36d9bfa2a Add dist/release build script and licenses 2015-06-11 23:17:11 -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
db2368cd0b Removed parentheses #127 2015-06-12 11:33:55 +10:00
0f9d26829c Merge pull request #130 from abiosoft/master
Gzip: Accept MIME types.
2015-06-11 19:27:02 -06:00
29404e34d9 code cleanup 2015-06-11 13:17:56 +10:00
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
e0f10c2b03 Gzip: Accept MIME types. 2015-06-10 22:02:08 +01:00
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
5cdfa0aaaf Merge pull request #128 from coolaj86/meta-redirects
redirect: add ability to do meta redirects
2015-06-10 08:03:59 -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
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
00093a2052 core: Fix to allow empty (wildcard) host 2015-06-09 23:07:32 -06:00
3a795de828 Merge pull request #117 from zmb3/errorfmt
Update error strings (start with lowercase letters)
2015-06-09 08:24:08 -06:00