htpack/cmd/packserver
Laurence Withers 2b280de481 Correct handling of multiple packfiles
During the 1.3.1 update, a change was made to stop using http.Handle (and ServeMux
underneath), in order to have manual control over the http.Server object.

Unfortunately, it was overlooked that nothing was doing routing / multiplexing, so
when using multiple packfiles only one handler (picked arbitrarily due to map)
would actually be active on any given invocation.

Correct this by adding an explicit handler. We don't use ServeMux so as to avoid
bringing in any of its more complex behaviours like path cleaning etc.
2022-12-12 10:26:55 +00:00
..
go.mod cmd/packserver: update to Go 1.19, update dependencies 2022-11-26 10:14:25 +00:00
go.sum cmd/packserver: update to Go 1.19, update dependencies 2022-11-26 10:14:25 +00:00
main.go Correct handling of multiple packfiles 2022-12-12 10:26:55 +00:00