diff options
author | Daniele Sluijters <daenney@users.noreply.github.com> | 2020-11-23 14:01:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 13:01:18 +0000 |
commit | 8ca120df7c2964c73390dbfab9ceba03f76eadfe (patch) | |
tree | ca2b1610d8d45b625aec420d4bdc3a6b51282492 /docker | |
parent | fix MD (diff) | |
download | synapse-8ca120df7c2964c73390dbfab9ceba03f76eadfe.tar.xz |
INSTALL: Fix setting content-type on well-known (#8793)
When using `add_header` nginx will literally add a header. If a `content-type` header is already configured (for example through a server wide default), this means we end up with 2 content-type headers, like so: ``` content-type: text/html content-type: application/json access-control-allow-origin: * ``` That doesn't make sense. Instead, we want the content type of that block to only be `application/json` which we can achieve using `default_type` instead. Signed-off-by: Daniele Sluijters <daenney@users.noreply.github.com>
Diffstat (limited to 'docker')
0 files changed, 0 insertions, 0 deletions