Releases: mjpclab/go-http-file-server
Version 1.21.1
Main Changes
- can specify filename for archive (e.g. http://localhost/path/?zip=renamed.zip)
- can specify filename for download (e.g. http://localhost/path/file.txt?download=renamed.txt)
- removed compatibility for old browsers like Internet Explorer, classic Edge or others browsers released at the time. Future release will require a more modern browser.
主要变更
- 可以指定打包时所用的文件名(例如 http://localhost/path/?zip=renamed.zip)
- 可以指定下载时所用的文件名(例如 http://localhost/path/file.txt?download=renamed.txt)
- 移除了对老旧浏览器(如Internet Explorer、经典Edge或同时期发布的其它浏览器)的兼容性支持。后续版本将要求更新的浏览器。
Version 1.20.4
Main changes
- archive: stop walking tree node when client disconnected #50
- minor improvements and fixes
Version 1.20.3
minor improvements and fixes
次要改进和修复
Version 1.20.2
Main changes
- add env var
GHFS_LOG_QUEUE_SIZE
to config log queue size for each file - minor improvements and fixes
主要变更
- 添加环境变量
GHFS_LOG_QUEUE_SIZE
来配置每个日志文件的队列大小 - 次要改进和修复
Version 1.20.1
Minor improvements and fixes.
次要改进和修复。
Version 1.20.0
Breaking Change to request param
Before:
GET /dir?download
shows simple page.
GET /dir?downloadfile
shows simple page, and add download param to files.
GET /file?download
download a file instead of displaying its content.
GET /file?downloadfile
download a file instead of displaying its content.
After:
GET /dir?simple
shows simple page.
GET /dir?download
add download param to files.
GET /dir?simpledownload
shows simple page, and add download param to files.
GET /file?download
download a file instead of displaying its content.
Version 1.19.1
Minor improvements and fixes.
次要改进和修复。
Version 1.19.0
Main changes
- reload TLS certificate files when received signal SIGHUP, useful when certificate renewed
- focus child item when goes to parent directory
- fix: skip outputting gzip-compressed content if it is a Range request
- add request host to access log
- minor fixes and improvements
Breaking change
API: request JSON data by header Accept: application/json
Usage for requesting JSON response changed.
Before:
curl 'http://server/path?json'
After:
curl -H 'Accept: application/json' 'http://server/path'
主要变更
- 当收到信号SIGHUP时,重新加载TLS证书文件,在证书续期时很有用
- 进入父目录时设置子项焦点
- 修复:如果是Range请求,输出时跳过gzip压缩
- 将请求主机添加到访问日志
- 次要修复和改进
破坏性变更
API: 通过头Accept: application/json
标识请求JSON数据
请求JSON响应的用法已发生变化。
之前:
curl 'http://server/path?json'
之后:
curl -H 'Accept: application/json' 'http://server/path'
Version 1.18.1
- show logged in username
- added
--archive-user
and--archive-dir-user
Version 1.18.0
Main changes
Added several options to control if directory index is available:
--index <url-path> ...
--index-user <separator><url-path>[<separator><allowed-username>...] ...
Set url paths(and sub paths) that allows to index files of a directory.
--index defaults to "/".
Set to "" to disable index.
--index-dir <fs-path> ...
--index-dir-user <separator><fs-path>[<separator><allowed-username>...] ...
Similar to --index, but use file system path instead of url path.
主要变更
添加了数个选项来控制目录列表的可见性:
--index <URL路径> ...
--index-user <分隔符><URL路径>[<分隔符><允许的用户名>...] ...
设置允许索引目录的URL路径(及子路径)。
--index默认值为"/"。
设为""来禁用索引。
--index-dir <文件系统路径> ...
--index-dir-user <分隔符><文件系统路径>[<分隔符><允许的用户名>...] ...
与--index类似,但指定的是文件系统路径,而不是URL路径。