GitHub user SaveTheRbtz opened a pull request: https://github.com/apache/trafficserver/pull/14
Internal LinkedIn's improvements to header_rewrite module: * Crash fixes; * Variable expansion for add-header; * `counter` operation that increments counter on rule triggering; * `COOKIE` based conditions. * Whitespace, trailing spaces and style cleanup; * Documentation improvements. You can merge this pull request into a Git repository by running: $ git pull https://github.com/SaveTheRbtz/trafficserver master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/trafficserver/pull/14.patch ---- commit f1ea0d7ca95d03c2676ff12e764aa8702bb46bdc Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-03T02:33:07Z TS-2316: header_rewrite: unify style Submitted by: Alexey Ivanov <aiva...@linkedin.com> Sponsored by: LinkedIn commit 38b05cd4e9b96ba920f9f61a988e037251853c25 Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-03T02:34:13Z TS-2316: header_rewrite: removed trailing spaces Submitted by: Alexey Ivanov <aiva...@linkedin.com> Sponsored by: LinkedIn commit 236c52cf2bb4d6831494fe4bddfba8b9acff68e3 Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-03T04:08:17Z TS-2316: header_rewrite: fixed segfaults in ConditionPath::append_value() Submitted by: Manjesh Nilange <mnila...@linkedin.com> Sponsored by: LinkedIn commit 3f4e1c74527f5ecaed0b9f1d116ba29dd6c419f5 Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-05T04:29:19Z TS-2316: header_rewrite: added variable expansion support to add-header Submitted by: Thomas Jackson <thjac...@linkedin.com> Sponsored by: LinkedIn commit 8e2cc15fe2315107357970f63477fa99cb6cd04e Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-05T04:46:57Z TS-2316: header_rewrite: fix for crash in client header condition Submitted by: Manjesh Nilange <mnila...@linkedin.com> Sponsored by: LinkedIn commit b79c9074455e4634d2a809a71e6cc6122567f610 Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-05T19:14:06Z TS-2316: header_rewrite: added optional counter to each rule Now you can count each rule's tripping by providing one or more "counter" statements e.g:: cond %{SEND_RESPONSE_HDR_HOOK} [AND] add-header X-DC "DC1" counter plugins.header_rewrite.POP counter plugins.header_rewrite.ALL Submitted by: Alexey Ivanov <aiva...@linkedin.com> Sponsored by: LinkedIn commit 3d37f51d1b1be4222dbb33afd2692e4a6ab11de7 Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-05T20:55:10Z TS-2316: header_rewrite: added cookie-based conditions Submitted by: Alexey Ivanov <aiva...@linkedin.com> Sponsored by: LinkedIn commit c83a52937791827a949d4b8469c7a4439860f6bb Author: Alexey Ivanov <aiva...@linkedin.com> Date: 2013-11-11T02:23:39Z TS-2316: header_rewrite: improved documentation Added variable expansion, counter operation and cookie condition. Removed non-existient METHOD condition example. Submitted by: Alexey Ivanov <aiva...@linkedin.com> Sponsored by: LinkedIn ----