5

When I send a header X-foo: bar to Apache from my backend and I configure Apache with:

Header setifempty X-foo "baz"

I receive two X-foo headers instead of one with "baz" value.

I use the version 2.4.41 httpd (docker image).

Is it a bug or a misconfig?

Ioni
  • 51
  • 1
  • Perhaps the backend adds the header afterwards :-? – Álvaro González Jan 10 '20 at 18:43
  • The backend sends only one `X-foo`. :/ – Ioni Jan 10 '20 at 19:24
  • I’ve noticed this a few time’s in Chrome on various sites and think it’s a display bug. Try from another browser and/or curl and make sure it’s a real issue. – Barry Pollard Jan 10 '20 at 23:39
  • Yes, but perhaps it adds the header after mod_header does so `setifempty` does not have the chance to work as expected. It's just an hypothesis, I'm not familiar with that module and I don't know how your backend works. – Álvaro González Jan 11 '20 at 10:15
  • I used curl to be sure before posting. And the backend is a PHP-FPM and the header is set by the classical `header()` function. – Ioni Jan 11 '20 at 14:55

0 Answers0