You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by de...@apache.org on 2017/08/17 15:09:33 UTC

[1/2] incubator-trafficcontrol git commit: This closes #827

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 15158ba8c -> 2d5a1110e


This closes #827


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/2d5a1110
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/2d5a1110
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/2d5a1110

Branch: refs/heads/master
Commit: 2d5a1110e0229a869ec326d4c7ff7b3e89a8cf8a
Parents: 58e2164
Author: Dewayne Richardson <de...@apache.org>
Authored: Thu Aug 17 09:09:28 2017 -0600
Committer: Dewayne Richardson <de...@apache.org>
Committed: Thu Aug 17 09:09:28 2017 -0600

----------------------------------------------------------------------

----------------------------------------------------------------------



[2/2] incubator-trafficcontrol git commit: Fix TO Go cookie to have path, httponly

Posted by de...@apache.org.
Fix TO Go cookie to have path, httponly


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/58e2164a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/58e2164a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/58e2164a

Branch: refs/heads/master
Commit: 58e2164a25f460210b56d203a203cf930698fd6e
Parents: 15158ba
Author: Robert Butts <ro...@gmail.com>
Authored: Wed Aug 16 16:01:03 2017 -0600
Committer: Dewayne Richardson <de...@apache.org>
Committed: Thu Aug 17 09:09:28 2017 -0600

----------------------------------------------------------------------
 traffic_ops/traffic_ops_golang/wrappers.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/58e2164a/traffic_ops/traffic_ops_golang/wrappers.go
----------------------------------------------------------------------
diff --git a/traffic_ops/traffic_ops_golang/wrappers.go b/traffic_ops/traffic_ops_golang/wrappers.go
index 9969777..d21017f 100644
--- a/traffic_ops/traffic_ops_golang/wrappers.go
+++ b/traffic_ops/traffic_ops_golang/wrappers.go
@@ -92,7 +92,7 @@ func wrapAuth(h RegexHandlerFunc, noAuth bool, secret string, privLevelStmt *sql
 		}
 
 		newCookieVal := tocookie.Refresh(oldCookie, secret)
-		http.SetCookie(w, &http.Cookie{Name: tocookie.Name, Value: newCookieVal})
+		http.SetCookie(w, &http.Cookie{Name: tocookie.Name, Value: newCookieVal, Path: "/", HttpOnly: true})
 
 		h(w, r, p)
 	}