@@ -48,7 +48,7 @@ describe("express with google upstream and botli decompress", function () {
4848 request ( server )
4949 . get ( "/" )
5050 . set ( "Accept" , "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" )
51- . set ( "Accept-Encoding" , "gzip, deflate, br " )
51+ . set ( "Accept-Encoding" , "gzip, deflate" )
5252 . set ( "User-Agent" , "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" )
5353 . expect ( r => {
5454 expect ( r . text ) . to . be . a ( "string" ) . and . satisfy ( body => body . startsWith ( "<!doctype html>" ) ) ;
@@ -60,7 +60,6 @@ describe("express with google upstream and botli decompress", function () {
6060 it ( "[DEBUG] returns good content for / with accept-encoding and User-Agent" , ( done ) => {
6161 request ( server )
6262 . get ( "/" )
63- . redirects ( 1 )
6463 . set ( "Accept" , "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" )
6564 . set ( "Accept-Encoding" , "gzip, deflate, br" )
6665 . set ( "User-Agent" , "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" )
@@ -83,7 +82,7 @@ describe("express with google upstream and botli decompress", function () {
8382 request ( server )
8483 . get ( "/" )
8584 . set ( "Accept" , "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9" )
86- . set ( "Accept-Encoding" , "gzip, deflate, br " )
85+ . set ( "Accept-Encoding" , "gzip, deflate" )
8786 . set ( "Cache-Control" , "no-cache" )
8887 . set ( "Connection" , "keep-alive" )
8988 . set ( "Pragma" , "no-cache" )
@@ -139,7 +138,7 @@ describe("express with google upstream without botli decompress", function () {
139138
140139 let app = require ( "./app" ) ;
141140 app . setup ( {
142- UPSTREAM : "www.google.co.uk" ,
141+ UPSTREAM : "https:// www.google.co.uk" ,
143142 LOG_LEVEL : ( process . env . NODE_ENV === "test" ? "warn" : "debug" ) ,
144143 UNBOTLI : "false"
145144 } ) ;
0 commit comments