mirror of
https://github.com/minoplhy/chibisafe-netproxy.git
synced 2024-12-22 10:08: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
|
||||
req.Header.Set("Content-Type", ContentType)
|
||||
|
||||
// clear memory for others process to use
|
||||
defer buffer.Reset()
|
||||
|
||||
// Send the request
|
||||
resp, err := client.Do(req)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user