Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2b85e8d

Browse filesBrowse files
shawncatznotzippy
authored andcommitted
changes cookie.secure default to be based on HTTP SSL (revel#1141)
* change cookie.secure default to depend on HTTP SSL setting should only be enabled when SSL is enabled in revel also, fixes name of function in comment
1 parent f4aeaf3 commit 2b85e8d
Copy full SHA for 2b85e8d

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎filterconfig.go

Copy file name to clipboardExpand all lines: filterconfig.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func newFilterConfigurator(controllerName, methodName string) FilterConfigurator
6666

6767
// FilterController returns a configurator for the filters applied to all
6868
// actions on the given controller instance. For example:
69-
// FilterAction(MyController{})
69+
// FilterController(MyController{})
7070
func FilterController(controllerInstance interface{}) FilterConfigurator {
7171
t := reflect.TypeOf(controllerInstance)
7272
for t.Kind() == reflect.Ptr {

‎revel.go

Copy file name to clipboardExpand all lines: revel.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func Init(mode, importPath, srcPath string) {
204204
AppRoot = Config.StringDefault("app.root", "")
205205
CookiePrefix = Config.StringDefault("cookie.prefix", "REVEL")
206206
CookieDomain = Config.StringDefault("cookie.domain", "")
207-
CookieSecure = Config.BoolDefault("cookie.secure", !DevMode)
207+
CookieSecure = Config.BoolDefault("cookie.secure", HTTPSsl)
208208
TemplateDelims = Config.StringDefault("template.delimiters", "")
209209
if secretStr := Config.StringDefault("app.secret", ""); secretStr != "" {
210210
secretKey = []byte(secretStr)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.