Skip to content

Commit

Permalink
testcase fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SilentEntity committed Jan 5, 2024
1 parent f8453cd commit 5c947e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions t/plugin/brotli.t
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,9 @@ passed
ngx.say(err)
return
end
ngx.say(res)
if res.headers["Content-Encoding"] ~= 'gzip' then
ngx.say("ok")
end
}
}
--- request
Expand All @@ -779,5 +781,5 @@ GET /t
Accept-Encoding: gzip, br
Vary: upstream
Content-Type: text/html
--- response_headers
Content-Encoding: gzip
--- response_body
ok

0 comments on commit 5c947e0

Please sign in to comment.