Added error checking with sending responses

This commit is contained in:
Nate Choe
2022-01-30 21:37:47 -06:00
parent efd1ac1a0c
commit e1a66999b6
7 changed files with 23 additions and 8 deletions

View File

@@ -43,3 +43,11 @@
[2022-01-31T03:25:44Z] swebs started
[2022-01-31T03:25:48Z] Couldn't find swebs user
[2022-01-31T03:25:48Z] swebs started
[2022-01-31T03:35:13Z] Couldn't find swebs user
[2022-01-31T03:35:13Z] swebs started
[2022-01-31T03:35:35Z] Couldn't find swebs user
[2022-01-31T03:35:35Z] swebs started
[2022-01-31T03:36:20Z] Couldn't find swebs user
[2022-01-31T03:36:20Z] swebs started
[2022-01-31T03:37:29Z] Couldn't find swebs user
[2022-01-31T03:37:29Z] swebs started

View File

@@ -1 +1,3 @@
<h1>You found the easter egg!</h1>
<img src="/egg.png">
<p>There should be a picture of an egg here, but it doesn't show. go to 127.0.0.1:8000/egg.png to see it.</p>

BIN
example/site/egg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@@ -10,5 +10,6 @@ read /blog/.* site/blog/
#/blog/2021-1-25.html turns into site/blog//blog/2021-1-25.html
set host 127.0.0.1:8000
read / site/easteregg.html
read /egg.png site/egg.png
set host .*
read /alldomains site/alldomains.html