Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1061 from pagespeed/oschaaf-trunk-tracking-add-re…
Browse files Browse the repository at this point in the history
…source-header

AddResourceHeader: Add test configuration
  • Loading branch information
jeffkaufman committed Jan 19, 2016
2 parents 9e6048f + 2b74f6b commit b214fb4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/pagespeed_test.conf.template
Expand Up @@ -1485,6 +1485,14 @@ http {
}

location ~ "\.pagespeed\.([a-z]\.)?[a-z]{2}\.[^.]{10}\.[^.]+" {
# TODO(oschaaf): The following breaks nginx starting up, as the bad header
# value gets rejected during configuration parsing. However, we can't easily
# build a test for that right now.
# pagespeed AddResourceHeader "X-Fo\n\no" "Bar";
# pagespeed AddResourceHeader "X-Foo" "Ba\nr";

# For testing that AddResourceHeader gets passed through
pagespeed AddResourceHeader "X-Foo" "Bar";
add_header "" "";
}

Expand Down

0 comments on commit b214fb4

Please sign in to comment.