Releases: mjpclab/go-http-file-server
Version 1.5.0
Main changes
- feat: add directory index page option
Version 1.4.2
Version 1.4.2 fix some known issues.
Version 1.4.1
Main changes
- feat(serverHandler): provide main error information
- chore(conf): update sysv init script
- feat(serverHandler): respond 403 status for permission error
- fix: ignore path name case on windows platform
Breaking changes
perf(serverHandler/responseData): provide status instead of detail errors
Providing response status directly, instead of giving out errors
information and calculate response status according to them.
BREAKING CHANGE:
Root fields passing to template changed.
before:
{{if .HasForbiddenError}}...{{end}}
{{if .HasNotFoundError}}...{{end}}
{{if .HasInternalError}}...{{end}}
after:
{{if eq .Status 403}}...{{end}}
{{if eq .Status 404}}...{{end}}
{{if eq .Status 500}}...{{end}}
Version 1.4.0
Main changes
fix(tpl): prevent collapse multiple whitespaces from filenames
feat(tpls): show escape char in filename
fix(tpl): remove fixed width from modify date
fix(serverHandler/content) add extra headers for HEAD method
fix(archive): use url base name instead of fs name for alias root
feat(serverHandler): output json data if param is "json"
feat(serverHandler): prevent output error information to end user
Breaking changes
feat(serverHandler): remove proxy features
Feature for proxying specified url path is removed.
- Proxy is not a main feature for file sharing server
- Removing proxy reduces code complexity a lot
refactor(tpl): simplify sub item class name
Sub items' class names of a directory are changed. This may break
external customized templates.
Before:
Class names are on <a> elements, which are children of <li> elements.
directory class names: "item", "item-dir"
file class names: "item", "item-file"
After:
Class names are on <li> elements.
directory class name: "dir"
file class name: "file"
refactor(tpl): use formatted data for page rendering
Add .Html
to sub item info.
Function invoking in template is slow. Generate formatted data before
rendering.
before:
Iterate item's FileInfo in template
{{range .SubItems}}
...
{{end}}
after:
Iterate item's FileInfo in template
{{range .SubItems}}{{with .Info}}
...
{{end}}{{end}}
Version 1.3.0
feat(cors): add TRACE to CORS allowed mehtods
fix(serverHandler): output Content-Type header by HEAD method for file content
feat(tpl): add focus style for link
feat: add option to use virtual empty root directory
feat(tpl): use list element for paths and files
Version 1.2.3
Version 1.1.0
6b27e7d fix(archive): close file after wrote to archive
895caaa doc(auth): add example for http basic auth
6dbe48c feat(auth): restrict inittial user hashed password byte length same as hash size
2a9abc2 feat: add options accept user with encoded password
79e13f1 feat: add http Basic Auth options
a765f5a fix(tpl): make workaround CSS style for legacy browser
5829e6c refactor(serverHandler/archive): extract archive func
ed19071 refactor(serverHandler/archive): refine codes
320f25f Revert "refactor(archive): create archived file header from FileInfo"
da07764 feat(serverHandler): output response body only if necessary
4f53f04 refactor(serverHandler): extract page rendering func
ac027e4 refactor(serverHandler): rename pageData
to responseData
3bdf969 refactor(serverLog): simplify code
1de0b57 chore: upgrade goNixArgParser
a59a1cb chore(param): upgrade goNixArgParser
119229c fix(conf): use -HUP for kill signal
586c6d0 docs: update README
936c10d feat(param): add allow CORS headers for file system paths
Version 1.0.0
v1.0.0 version 1.0.0