mirror of
https://github.com/minoplhy/chibisafe-netproxy.git
synced 2024-11-22 11:37:08 +00:00
chibisafe_netstorage_middleman : defer reset
This commit is contained in:
parent
fab89c56e5
commit
54cfa1ace0
@ -107,6 +107,9 @@ func NetworkStoragePut(URL string, ContentType string, filepath string) ([]byte,
|
|||||||
// Set appropriate headers for the file
|
// Set appropriate headers for the file
|
||||||
req.Header.Set("Content-Type", ContentType)
|
req.Header.Set("Content-Type", ContentType)
|
||||||
|
|
||||||
|
// clear memory for others process to use
|
||||||
|
defer buffer.Reset()
|
||||||
|
|
||||||
// Send the request
|
// Send the request
|
||||||
resp, err := client.Do(req)
|
resp, err := client.Do(req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user