Test fixups because fallback css now always uses chunked encoding in 1.8.31.3
This commit is contained in:
@@ -2594,10 +2594,11 @@ check fgrep -q "awaiting response... 304" $OUTFILE
|
||||
|
||||
start_test PageSpeed resources should have a content length.
|
||||
URL="$EXAMPLE_ROOT/styles/W.rewrite_css_images.css.pagespeed.cf.Hash.css"
|
||||
OUT=$($WGET_DUMP --save-headers $URL)
|
||||
check_from "$OUT" egrep -q $'^Content-Length: ([0-9])*\r$'
|
||||
check_not_from "$OUT" egrep -iq $'^Transfer-Encoding: chunked\r$'
|
||||
check_not_from "$OUT" egrep -iq $'^Connection: close\r$'
|
||||
fetch_until -save $URL "egrep -c Transfer-Encoding:" 1 "--save-headers"
|
||||
OUT=$(cat $FETCH_UNTIL_OUTFILE)
|
||||
check_from "$OUT" egrep -iq $'^Transfer-Encoding: chunked\r$'
|
||||
check_not_from "$OUT" egrep -iq '^Content-Length:'
|
||||
check_not_from "$OUT" egrep -iq '^Connection: close'
|
||||
|
||||
start_test Downstream cache integration caching headers.
|
||||
URL="http://downstreamcacheresource.example.com/mod_pagespeed_example/images/"
|
||||
|
||||
Reference in New Issue
Block a user