bslatkin / dpxdt

Make continuous deployment safe by comparing before and after webpage screenshots for each release. Depicted shows when any visual, perceptual differences are found. This is the ultimate, automated end-to-end test.
https://dpxdt-test.appspot.com
Apache License 2.0
1.44k stars 124 forks source link

Support per-host custom headers #194

Closed jbarratt closed 8 years ago

jbarratt commented 8 years ago

This adds support for custom, per-host headers, and fixes #191. The new config stanza looks like:

injectHeaders:
  hostpattern:
    X-FirstHeader: FirstValue
    X-OtherHeader: SomeOtherValue
    Host: fakehostname.com

All connections to a host matching hostpattern (using the same methodology as resourcesToIgnore, matching on exact string, or regexp syntax search) have those headers added. I tested this locally and it works perfectly, but it was not clear how to add this cleanly to the test suite.