REGTESTS: silence warnings about content-type being ignored
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 06:59:21 +0000 (07:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2024 07:06:26 +0000 (08:06 +0100)
commitdce394a3033877c06f046ea8c3b594d76637953b
tree7b83a9fb9706c33582ebea5f96e0a033fd33a6a9
parent6d70da76d300d9c6965943807f44a713a8005ff9
REGTESTS: silence warnings about content-type being ignored

The following rules are triggering warnings about content-type being
ignored:

  http-request return content-type "text/plain" if { path /def-4 }
  http-request return content-type "text/plain" file /dev/null hdr "x-custom-hdr" "%[url]"  if { path /empty-file }

Annoyingly, the content-type is mandatory when the file is not empty,
that might be something to revisit in the future to relax at least one
of the rules so that the config doesn't strictly require to know the
file contents upfront.
reg-tests/http-rules/http_return.vtc
reg-tests/sample_fetches/ubase64.vtc