1
0
Fork 0
forked from mia/0x0

Use template responses

This commit is contained in:
Mia Herkt 2020-12-29 04:06:52 +01:00
parent 5db62c2dbf
commit d815d6855f
No known key found for this signature in database
GPG key ID: 72E154B8622EC191
6 changed files with 79 additions and 105 deletions

15
templates/404.html Normal file
View file

@ -0,0 +1,15 @@
{% set pid = range(20,100)|random %}
<pre>Process {{ pid }} stopped
* thread #1: tid = {{ pid }}, {{ "{:#018x}".format(id(g)) }}, name = 'fhost'
frame #0:
Process {{ pid }} stopped
* thread #8: tid = {{ pid }}, {{ "{:#018x}".format(id(request)) }} fhost`get(path='{{ request.path }}') + 27 at fhost.c:139, name = 'fhost/responder', stop reason = invalid address (fault address: 0x30)
frame #0: {3:#018x} fhost`get(path='{{ request.path }}') + 27 at fhost.c:139
136 get(SrvContext *ctx, const char *path)
137 {
138 StoredObj *obj = ctx->store->query(shurl_debase(path));
-> 139 switch (obj->type) {
140 case ObjTypeFile:
141 ctx->serve_file_id(obj->id);
142 break;
(lldb) q</pre>