Skip to content

Version 1.19.0

Compare
Choose a tag to compare
@marjune163 marjune163 released this 07 Aug 16:41
· 15 commits to main since this release

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'