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

@ -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>
<p>There's no Location header there! And the browsers are
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>
<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

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.

View file

@ -58,6 +58,12 @@ h3 {
font-size: 24px;
}
code {
background: #0e0f0f;
border-radius: .2em;
padding: .125em;
}
wrap {
word-wrap: break-word
}