1
0
mirror of https://github.com/gogf/gf.git synced 2025-04-05 11:18:50 +08:00

22 Commits

Author SHA1 Message Date
John Guo
a9953a4729 up 2025-03-26 21:32:56 +08:00
River
bcda48bf82
fix(net/ghttp):check parameter existence to determine using default or front-end value. (#4182) 2025-03-08 20:56:27 +08:00
hailaz
63cb3285f8
fix(net/ghttp): update response message handling in MiddlewareHandlerResponse (#4162) 2025-02-27 11:59:26 +08:00
John Guo
6bd15b0796 merge master 2025-01-22 19:17:16 +08:00
Wlynxg
99f0fb14a1
fix(net/ghttp): BufferWriter.Flush writes additional information after custom response wrote (#4116) 2025-01-22 09:28:06 +08:00
Wlynxg
e0f734851e
fix(net/ghttp): MiddlewareHandlerResponse writes additional information after custom response wrote (#4109) 2025-01-14 09:28:19 +08:00
Wlynxg
89e5285d95
feat(net/ghttp): move plugin remove logic to Shutdown() && call Shutdown() when Run() exits (#4072) 2024-12-26 10:18:47 +08:00
John Guo
594979c5af
fix(net/ghttp): nil pointer panic error when server logger set nil (#4055) 2024-12-19 22:31:17 +08:00
John Guo
9af8393758
fix(net/goai): change default value of RequestBody.Required from true to false, add required tag support for RequestBody (#3796) 2024-09-24 11:51:53 +08:00
wln32
8a1c97f518
fix(util/gconv): cached field indexes append issue caused incorrect field converting (#3790) 2024-09-23 19:05:32 +08:00
oldme
51326f3d02
fix #3245 (#3298) 2024-02-06 11:47:25 +08:00
John Guo
cc79d23334
fix issue #2457 (#3297) 2024-02-02 10:57:24 +08:00
John Guo
bcb479aabb
fix issue #3077 (#3081) 2023-10-24 10:02:04 +08:00
John Guo
acf2307eb9
fix issue #2963 (#3062) 2023-10-19 19:58:19 +08:00
John Guo
7f1ce2aff3
fix issue #2904 (#3004) 2023-10-11 21:33:51 +08:00
John Guo
8d925d4741
fix issue #2890 (#3002) 2023-10-09 20:00:08 +08:00
John Guo
cb44c40a9c
fix issue #2482 (#2789) 2023-07-25 20:28:50 +08:00
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
John Guo
f1455ad37a
fix issue #2172 (#2173)
* version updates

* fix issue #2172
2022-10-08 11:46:38 +08:00
John Guo
bceb5fc7de rename gdebug.TestData* -> gtest.Data*; add UT case for http server 2022-03-17 16:58:04 +08:00
John Guo
d8d9996464 fix issue #1662 2022-03-11 10:24:42 +08:00
John Guo
213392640c fix issue #1653 2022-03-10 09:22:50 +08:00