TheFox0x7
ee3c82f874
Enable addtional linters ( #34085 )
...
enable mirror, usestdlibbars and perfsprint
part of: https://github.com/go-gitea/gitea/issues/34083
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-01 10:14:01 +00:00
wxiaoguang
3996518ed4
Refactor cache-control ( #33861 )
...
And fix #21391
2025-03-13 07:04:50 +08:00
TheFox0x7
2a02734f93
Refactor older tests to use testify ( #33140 )
...
Refactor checks to use assert/require
Use require.Eventually for waiting in elastic and meilisearch tests
Use require to exit early instead of assert
2025-01-09 09:21:47 +08:00
6543
8995046110
Less naked returns ( #25713 )
...
just a step towards #25655
and some related refactoring
2023-07-07 05:31:56 +00:00
wxiaoguang
a94a8d0ab1
Use standard HTTP library to serve files ( #24693 )
...
`http.ServeFile/ServeContent` handles `If-xxx`, `Content-Length`,
`Range` and `Etag` correctly
After this PR, storage files (eg: avatar) could be responded with
correct Content-Length.
2023-05-13 16:04:57 +02:00
wxiaoguang
023a048f52
Make repository response support HTTP range request ( #24592 )
...
Replace #20480
Replace #18448
Close #16414
2023-05-09 15:34:36 +08:00