mirror of
https://github.com/syncthing/syncthing.git
synced 2024-11-16 18:41:59 -07:00
39899e40bf
Because json.NewDecoder(r).Decode(&v) doesn't necessarily consume all data on the reader, that means an HTTP connection can't be reused. We don't do a lot of HTTP traffic where we read JSON responses, but the discovery is one such place. The other two are for POSTs from the GUI, where it's not exactly critical but still nice if the connection still can be keep-alive'd after the request as well. Also ensure that we call req.Body.Close() for clarity, even though this should by all accounts not really be necessary. GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3050 |
||
---|---|---|
.. | ||
cache_test.go | ||
cache.go | ||
debug.go | ||
discover.go | ||
doc.go | ||
global_test.go | ||
global.go | ||
local.go | ||
localpackets_xdr.go | ||
localpackets.go |