1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-04 08:17:24 -05:00
gitea/modules/util
Chongyi Zheng 9631958a82
Refactor lfs requests (#26783)
- Refactor lfs request code
- The original code uses `performRequest` function to create the
request, uses a callback to modify the request, and then send the
request.
- Now it's replaced with `createRequest` that only creates request and
`performRequest` that only sends the request.
- Reuse `createRequest` and `performRequest` in `http_client.go` and
`transferadapter.go`

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-09-18 08:40:50 +00:00
..
filebuffer
rotatingfilewriter
color_test.go
color.go
error.go
file_unix_test.go
file_unix.go
file_windows.go
io_test.go
io.go
keypair_test.go
keypair.go
legacy_test.go
legacy.go
pack_test.go
pack.go
paginate_test.go
paginate.go
path_test.go
path.go Refactor lfs requests (#26783) 2023-09-18 08:40:50 +00:00
remove.go
sanitize_test.go
sanitize.go
sec_to_time_test.go
sec_to_time.go
shellquote_test.go
shellquote.go
slice_test.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
slice.go Replace util.SliceXxx with slices.Xxx (#26958) 2023-09-07 09:37:47 +00:00
string_test.go
string.go
timer_test.go
timer.go
truncate_test.go
truncate.go
url.go Add RemoteAddress to mirrors (#26952) 2023-09-16 16:03:02 +00:00
util_test.go Handle base64 decoding correctly to avoid panic (#26483) 2023-08-14 10:30:16 +00:00
util.go Use Go 1.21 and update dependencies (#26878) 2023-09-03 10:34:57 +00:00