File tree 4 files changed +12
-6
lines changed
Filter options
4 files changed +12
-6
lines changed
Original file line number Diff line number Diff line change 4
4
- 1.4
5
5
- 1.5
6
6
- 1.6
7
+ - 1.7
8
+ - 1.8
7
9
- tip
8
10
9
11
os :
@@ -24,9 +26,13 @@ services:
24
26
25
27
before_install :
26
28
# TRAVIS_OS_NAME - linux and osx
27
- - ' if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install memcached redis; fi'
28
- - ' if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup /usr/local/opt/memcached/bin/memcached & fi'
29
- - ' if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then nohup redis-server /usr/local/etc/redis.conf & fi'
29
+ - echo $TRAVIS_OS_NAME
30
+ - |
31
+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
32
+ brew update && brew install memcached redis && brew services start redis && brew services start memcached
33
+ fi
34
+ - redis-server --daemonize yes
35
+ - redis-cli info
30
36
31
37
install :
32
38
# Setting environments variables
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ func newFilterConfigurator(controllerName, methodName string) FilterConfigurator
66
66
67
67
// FilterController returns a configurator for the filters applied to all
68
68
// actions on the given controller instance. For example:
69
- // FilterAction (MyController{})
69
+ // FilterController (MyController{})
70
70
func FilterController (controllerInstance interface {}) FilterConfigurator {
71
71
t := reflect .TypeOf (controllerInstance )
72
72
for t .Kind () == reflect .Ptr {
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ func Init(mode, importPath, srcPath string) {
204
204
AppRoot = Config .StringDefault ("app.root" , "" )
205
205
CookiePrefix = Config .StringDefault ("cookie.prefix" , "REVEL" )
206
206
CookieDomain = Config .StringDefault ("cookie.domain" , "" )
207
- CookieSecure = Config .BoolDefault ("cookie.secure" , ! DevMode )
207
+ CookieSecure = Config .BoolDefault ("cookie.secure" , HTTPSsl )
208
208
TemplateDelims = Config .StringDefault ("template.delimiters" , "" )
209
209
if secretStr := Config .StringDefault ("app.secret" , "" ); secretStr != "" {
210
210
secretKey = []byte (secretStr )
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ func TestGetCustom(t *testing.T) {
76
76
77
77
testSuite .AssertOk ()
78
78
testSuite .AssertContentType ("application/json" )
79
- testSuite .AssertHeader ("Server" , "nginx " )
79
+ testSuite .AssertHeader ("Server" , "gunicorn/19.7.0 " )
80
80
testSuite .AssertContains ("httpbin.org" )
81
81
testSuite .AssertContainsRegex ("gzip|deflate" )
82
82
}
You can’t perform that action at this time.
0 commit comments