Skip to content

Commit 6ae9618

Browse files
authored
Move 404 and 500 images to local (#17432)
1 parent 96d2b9b commit 6ae9618

6 files changed

Lines changed: 2 additions & 4 deletions

File tree

assets/images/site/labtocat.png

39 KB
Loading

assets/images/site/waldocat.png

36.1 KB
Loading

layouts/error-404.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h1>{% data ui.errors.oops %}</h1>
1919
</div>
2020

2121
<div class="col-md-8 col-lg-6 mx-auto">
22-
<img src="https://octodex.github.com/images/waldocat.png" alt="waldocat">
22+
<img src="/assets/images/site/waldocat.png" alt="waldocat">
2323
</div>
2424

2525
<div class="col-lg-12 mt-6">

layouts/error-500.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1>{% data ui.errors.oops %}</h1>
1616
<pre><code>{{ error.stack }}</code></pre>
1717
{% endif %}
1818

19-
<img src="https://octodex.github.com/images/labtocat.png" alt="labtocat">
19+
<img src="/assets/images/site/labtocat.png" alt="labtocat">
2020
</article>
2121
</div>
2222

middleware/csp.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ module.exports = async (req, res, next) => {
2525
'data:',
2626
'github.githubassets.com',
2727
'github-images.s3.amazonaws.com',
28-
'octodex.github.com',
2928
'placehold.it',
3029
'*.githubusercontent.com',
3130
'github.com'

tests/rendering/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ describe('server', () => {
5252

5353
expect(csp.get('img-src').includes("'self'")).toBe(true)
5454
expect(csp.get('img-src').includes('github-images.s3.amazonaws.com')).toBe(true)
55-
expect(csp.get('img-src').includes('octodex.github.com')).toBe(true)
5655

5756
expect(csp.get('script-src').includes("'self'")).toBe(true)
5857

0 commit comments

Comments
 (0)