Commit Graph

10 Commits

Author SHA1 Message Date
Michael Kaye 1d008a0aad Run `go fmt` over the codebase 2022-04-01 14:17:48 +01:00
Michael Kaye 1137cb2c04 Correct the use of return 2022-02-22 15:40:46 +00:00
Michael Kaye ba8725a3aa Factor out serveDirectory into it's own method 2022-02-17 11:47:21 +00:00
Michael Kaye 77e66be90f Guard against including directories in tarball, handle http errors better, add documentation. 2022-02-17 11:38:36 +00:00
Michael Kaye 7b2d70a3c9 Fix last minute refactor fial. 2022-02-09 16:31:56 +00:00
Michael Kaye a2caf1c546 More whitespace 2022-02-09 16:12:05 +00:00
Michael Kaye 2a4434281c Fix whitespace 2022-02-09 16:10:55 +00:00
Michael Kaye 78060556a2 Serve a tarball containing the contents of a given directory.
This will make it easier to get all logs for a given bug; preventing users
needing to run scripts to download all files.

 - we cannot make the link exist in the directory listing as there are scripts
   that automate downloads which would pick this up.

 - Unsure if "?format=tar.gz" is the right option to enable this; I couldn't think
   of something easy to do but hard to not get picked up by existing automation, and
   wouldn't conflict with existing filenames.
2022-02-09 16:06:44 +00:00
Michael Kaye a7724b7bc8 Serve .json files as application/json. 2022-02-08 14:20:45 +00:00
gernest 8870cef95a
move files to the source root
Signed-off-by: gernest <geofreyernest@live.com>
2019-04-10 12:22:44 +03:00
Renamed from src/github.com/matrix-org/rageshake/logserver.go (Browse further)