Fix code background – again

This commit is contained in:
askiiart 2024-03-06 23:42:03 -06:00
parent cacf8e0784
commit 7726127ffe
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
3 changed files with 8 additions and 2 deletions

View file

@ -48,7 +48,7 @@ Content-Length: 223
Connection: keep-alive
```
There's no Location header there! And the browsers are probably refusing to show it because of the wrong `Content-Type`and no, adding a header with `add_header` doesn't work for that one, either.
There's no Location header there! And the browsers are probably refusing to show it because of the wrong `Content-Type` and no, adding a header with `add_header` doesn't work for that one, either.
Turns out in order to be able to use `add_header`, you first need to set `default_type` (which sets a default `Content-Type`). I could've set that in the `location /.git` block, but I just decided to make it global.