Fix code background – again
This commit is contained in:
parent
cacf8e0784
commit
7726127ffe
3 changed files with 8 additions and 2 deletions
|
@ -79,7 +79,7 @@
|
||||||
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a><span class="ex">Connection:</span> keep-alive</span></code></pre></div>
|
<span id="cb2-6"><a href="#cb2-6" aria-hidden="true" tabindex="-1"></a><span class="ex">Connection:</span> keep-alive</span></code></pre></div>
|
||||||
<p>There's no Location header there! And the browsers are
|
<p>There's no Location header there! And the browsers are
|
||||||
probably refusing to show it because of the wrong
|
probably refusing to show it because of the wrong
|
||||||
<code>Content-Type</code>—and no, adding a header with
|
<code>Content-Type</code> – and no, adding a header with
|
||||||
<code>add_header</code> doesn't work for that one, either.</p>
|
<code>add_header</code> doesn't work for that one, either.</p>
|
||||||
<p>Turns out in order to be able to use <code>add_header</code>,
|
<p>Turns out in order to be able to use <code>add_header</code>,
|
||||||
you first need to set <code>default_type</code> (which sets a
|
you first need to set <code>default_type</code> (which sets a
|
||||||
|
|
|
@ -48,7 +48,7 @@ Content-Length: 223
|
||||||
Connection: keep-alive
|
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.
|
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.
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,12 @@ h3 {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background: #0e0f0f;
|
||||||
|
border-radius: .2em;
|
||||||
|
padding: .125em;
|
||||||
|
}
|
||||||
|
|
||||||
wrap {
|
wrap {
|
||||||
word-wrap: break-word
|
word-wrap: break-word
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue