mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-25 08:17:36 +02:00
Tests
This commit is contained in:
parent
66cb35b5fc
commit
57814cf855
8 changed files with 209 additions and 37 deletions
server
|
@ -113,7 +113,7 @@ func newRequestFromMatrixJSON(r *http.Request, baseURL string, messageLimit int)
|
|||
}
|
||||
defer r.Body.Close()
|
||||
if body.LimitReached {
|
||||
return nil, errHTTPEntityTooLargeMatrixRequestTooLarge
|
||||
return nil, errHTTPEntityTooLargeMatrixRequest
|
||||
}
|
||||
var m matrixRequest
|
||||
if err := json.Unmarshal(body.PeekedBytes, &m); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue