Fix code background – again
This commit is contained in:
parent
cacf8e0784
commit
7726127ffe
3 changed files with 8 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue