mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 23:13:11 -06:00
mediaapi/writers/download: Fix infinite loop reading response body
This commit is contained in:
parent
8f9eb13f69
commit
391a1be69f
|
|
@ -302,8 +302,8 @@ func Download(w http.ResponseWriter, req *http.Request, origin types.ServerName,
|
|||
if readErr != nil {
|
||||
if readErr != io.EOF {
|
||||
fetchError = errRead
|
||||
break
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue