1
0
Commit Graph

26 Commits

Author SHA1 Message Date
31f84721ad
Status 204 prevents a Deleted page rendering. 2023-05-27 19:31:11 +04:00
9a889e746a
Saved 2 lines by deferring each of two calls instead of wrapping in an anonymous func.
Also, removed old cURL handling in an Upload handler.
2023-05-26 22:17:03 +04:00
85f853f48e
Removed /f/ path part in upload handler. 2023-05-26 04:37:07 +04:00
b18338e4e1
Made use of my own httpr router. Replace GetURLParam with httpr.Param. 2023-05-26 04:28:38 +04:00
5101a892de
Made AssetsFS() a standalone func. 2023-05-25 02:31:21 +04:00
fccb81d3a5
Added | separator to the start of all log.Printf() to separate date and action. 2023-05-25 02:24:00 +04:00
3327b30d12
Replaced logging.Logger with std log.Logger. 2023-05-25 02:22:56 +04:00
f0fc34c8e7
Remove func NotFound. 2023-05-25 00:09:30 +04:00
2ef85c6f29
Handle cURL and Wget clients. 2023-05-25 00:08:52 +04:00
b16ec84e86
Added missing return in free space check. 2023-05-24 23:57:02 +04:00
f8351b935d
Moved WriteHeader to nospace.jade. 2023-05-24 23:56:12 +04:00
64132ec18f
Removed missed w.WriteHeader(). 2023-05-24 23:52:33 +04:00
fb9cee2c0a
A new Error() handler used. 2023-05-24 23:50:49 +04:00
185bd80750
error50x made into universal error page. Also Error() handler was made that checks for cURL and Wget, and if find, then use built-in plaintext http.Error, and web.errorXXX otherwise. 2023-05-24 23:50:10 +04:00
a04adf7fa1
Replaced http.Error with 50x errors with web.Error50x(). 2023-05-24 23:20:21 +04:00
931f98d12e
Made use of cmd arguments. 2023-05-24 22:19:41 +04:00
c85c6555e2
Log errors to stdout (systemd-journal) instead of a separate file. Also updated error messages. And since journal already puts a date, use only a Llongfile flag to print a place where an error occured. 2023-05-24 21:45:46 +04:00
88ec5e5efe
Added missing io.Writer in a call of web.Deleted. 2023-05-21 22:24:36 +04:00
33ec19647b
Reworked logging. Store all actions in one file.log. 2023-05-21 21:27:44 +04:00
c53dab9e6b
Oops, that site argument isn't needed. 2023-05-21 20:25:26 +04:00
15dd184106
Added deleted page to show if file was successfully deleted. 2023-05-21 20:21:41 +04:00
d7191d0fbd
Added /favicon.svg endpoint. 2023-05-21 20:13:15 +04:00
8497efd6e1
Changed error message in NotFound handler. 2023-05-13 16:30:13 +04:00
472ebf5891
Made NtFound and RobotsTxt handlers a standalone funcs. 2023-05-13 16:29:32 +04:00
8925f2ce24
Added robots.txt file and its handler. 2023-05-13 16:00:38 +04:00
d5aa919a37
Moved http server to internal. 2023-04-24 00:49:53 +04:00