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

Commit

Permalink
check for duplicate header more thoroughly
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkaufman committed Apr 5, 2013
1 parent c7706ea commit bf14e06
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/nginx_system_test.sh
Expand Up @@ -422,6 +422,7 @@ RESOURCE_HEADERS=$($WGET_DUMP $URL)
check_from "$RESOURCE_HEADERS" egrep -q 'X-Extra-Header: 1'
# The extra header should only be added once, not twice.
check_not_from "$RESOURCE_HEADERS" egrep -q 'X-Extra-Header: 1, 1'
check [ "$(echo "$RESOURCE_HEADERS" | grep -c '^X-Extra-Header: 1')" = 1 ]
check_from "$RESOURCE_HEADERS" egrep -q 'Cache-Control: max-age=31536000'

check_failures_and_exit

0 comments on commit bf14e06

Please sign in to comment.