1
0
Commit Graph

35 Commits

Author SHA1 Message Date
17781c5445
Fixed copy-pasta. log.Fatalln() replaced with return err. 2023-08-06 01:42:56 +04:00
532e8d9da6
Code for determining of network type was moved to HttpServer's Start() func. 2023-08-06 01:26:41 +04:00
b513a5ff1d
Found that in an Error() func status code wasn't set. Fixed that. 2023-08-05 04:54:52 +04:00
c2278fdd2e
A little refactoring in handlers.go. 2023-08-05 04:46:25 +04:00
df3c5e0678
Oops, use Error() func instead of direct call of ErrorXXX(). 2023-08-05 04:26:11 +04:00
266cf9dbb0
Removed nospace.jade. Replaced by errorXXX.jade. 2023-08-05 04:22:27 +04:00
59e0629597
On index page only available storage is shown. 2023-08-01 16:50:39 +04:00
d81a29bd5b
Removed no more needed func AssetsFS. 2023-05-28 04:18:50 +04:00
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
0677147b63
Removed httprouter dependency from HTTP server. 2023-05-26 04:27:21 +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