Files
gf/net/ghttp
John Guo a853984f52 fix issue #2334 when accessing static files with cache time (#2366)
* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:

Verification method:
curl 'http://127.0.0.1:8000/' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed

* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:

Verification method:
curl 'http://127.0.0.1:8000/' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed

* Solve the problem of error when accessing static files with cache time.
Error message:
2022-11-29 19:40:11.090 [ERRO] http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp.(*ResponseWriter).Flush (ghttp_response_writer.go:58)
Stack:

Verification method:
curl 'http://127.0.0.1:8000/' -H 'If-Modified-Since: Thu, 08 Dec 2022 03:13:55 GMT' --compressed

* fix issue #2334 when accessing static files with cache time

* up

Co-authored-by: 曾洪亮 <hongliang.zeng@i-soft.com.cn>
Co-authored-by: houseme <housemecn@gmail.com>
2022-12-22 10:25:30 +08:00
..
2022-02-22 21:59:18 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2021-10-11 21:41:56 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2021-10-11 21:41:56 +08:00
2022-03-19 17:58:21 +08:00
2021-10-11 21:41:56 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
fix
2022-03-09 21:29:49 +08:00
2022-03-19 17:58:21 +08:00
2022-03-19 17:58:21 +08:00
2022-06-01 16:34:07 +08:00
2022-03-19 17:58:21 +08:00
2021-01-17 21:46:25 +08:00