trafficcontrol-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/4] incubator-trafficcontrol git commit: allow custom text
Date Tue, 11 Jul 2017 17:20:38 GMT
Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master db8e29506 -> 395f77ed8


allow custom text


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

Branch: refs/heads/master
Commit: b8cfefc169a003ec11c0563bc8bd18b53d632930
Parents: 5e49272
Author: Derek Gelinas <derek_gelinas@cable.comcast.com>
Authored: Wed Jun 21 10:52:22 2017 +0000
Committer: Jeff Elsloo <jeffrey_elsloo@cable.comcast.com>
Committed: Tue Jul 11 11:20:13 2017 -0600

----------------------------------------------------------------------
 traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/b8cfefc1/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
index 2fb07fb..7aeaf8e 100644
--- a/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
+++ b/traffic_ops/app/lib/API/Configs/ApacheTrafficServer.pm
@@ -1011,6 +1011,9 @@ sub take_and_bake_server {
 		if ( $parameter eq "header" && $data->{$parameter} eq "none" ) {
 			$header = "";
 		}
+		elsif ( $parameter eq "header" ) {
+			$header = $data->{$parameter} . "\n";
+		}
 		else {
 			$text .= $data->{$parameter} . "\n";
 		}
@@ -1034,6 +1037,9 @@ sub take_and_bake_profile {
 		if ( $parameter eq "header" && $data->{$parameter} eq "none" ) {
 			$header = "";
 		}
+		elsif ( $parameter eq "header" ) {
+			$header = $data->{$parameter} . "\n";
+		}
 		else {
 			$text .= $data->{$parameter} . "\n";
 		}


Mime
View raw message