elasticsearch/elasticsearch — pull request #7767 by javanna (2014-09-17 10:31:47+00:00)
Title: Internal: make sure that internally generated percolate request re-uses the original headers and request context

When percolating an existing document we internally recreate a new `PercolateRequest` that we go execute. We need to make sure that original headers and request context are preserved though when doing that.