mirror of
https://mau.dev/mautrix/go.git
synced 2026-03-14 14:25:53 +01:00
Fix Go 1.14 compatibility. Fixes #42
This commit is contained in:
parent
5dd96e0cc0
commit
deafd6d9b0
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ func (cli *Client) closeTemp(file *os.File) {
|
|||
}
|
||||
|
||||
func (cli *Client) streamResponse(req *http.Request, res *http.Response, responseJSON interface{}) error {
|
||||
file, err := os.CreateTemp("", "mautrix-response-")
|
||||
file, err := ioutil.TempFile("", "mautrix-response-")
|
||||
if err != nil {
|
||||
cli.logWarning("Failed to create temporary file: %v", err)
|
||||
_, err = cli.handleNormalResponse(req, res, responseJSON)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue