Fix error codes, handle bad requests for creation
Fix that invalid UTF-8 or continuing the read mid-character crashes server thread.
This commit is contained in:
parent
1652a850b8
commit
42aceb2a01
8 changed files with 65 additions and 24 deletions
|
@ -1,10 +1,10 @@
|
|||
{% include "header.html" %}
|
||||
<br>
|
||||
<h2>404</h2>
|
||||
<b>Not Found</b>
|
||||
<h2>{{ status_code.as_u16() }}</h2>
|
||||
<b>{{ status_code.canonical_reason().unwrap_or("Unknown error") }}</b>
|
||||
<br>
|
||||
<br>
|
||||
<a href="{{ args.public_path }}/"> Go Home</a>
|
||||
<br>
|
||||
<br>
|
||||
{% include "footer.html" %}
|
||||
{% include "footer.html" %}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
|
||||
<head>
|
||||
<title>MicroBin</title>
|
||||
<title>{{ args.title }}</title>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue