You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2016/04/08 22:58:00 UTC
trafficserver git commit: Adds license to new header_regex examples
Repository: trafficserver
Updated Branches:
refs/heads/master c4ad59edc -> 41ca9dfbf
Adds license to new header_regex examples
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/41ca9dfb
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/41ca9dfb
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/41ca9dfb
Branch: refs/heads/master
Commit: 41ca9dfbf08fc4fdbf1f82b601c64fecfc6ddfe8
Parents: c4ad59e
Author: Leif Hedstrom <zw...@apache.org>
Authored: Fri Apr 8 17:57:24 2016 -0300
Committer: Leif Hedstrom <zw...@apache.org>
Committed: Fri Apr 8 17:57:24 2016 -0300
----------------------------------------------------------------------
plugins/header_rewrite/Examples/Geo | 17 +++++++++++++++++
plugins/header_rewrite/Examples/Now | 17 +++++++++++++++++
2 files changed, 34 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/41ca9dfb/plugins/header_rewrite/Examples/Geo
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/Examples/Geo b/plugins/header_rewrite/Examples/Geo
index 8213ee8..3ea3a60 100644
--- a/plugins/header_rewrite/Examples/Geo
+++ b/plugins/header_rewrite/Examples/Geo
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
cond %{SEND_RESPONSE_HDR_HOOK} [AND]
cond %${GEO:COUNTRY} =US
set-header ATS-Geo-Country %{GEO:COUNTRY}
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/41ca9dfb/plugins/header_rewrite/Examples/Now
----------------------------------------------------------------------
diff --git a/plugins/header_rewrite/Examples/Now b/plugins/header_rewrite/Examples/Now
index 09a33bd..907df54 100644
--- a/plugins/header_rewrite/Examples/Now
+++ b/plugins/header_rewrite/Examples/Now
@@ -1,3 +1,20 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
cond %{SEND_RESPONSE_HDR_HOOK} [AND]
cond %{NOW} >1453484915
set-header X-Now %{NOW}