mirror of
https://github.com/djdevin/recflare.git
synced 2026-10-26 23:48:52 -07:00
[img] hardening
This commit is contained in:
@@ -189,7 +189,7 @@ it('POST /upload refuses an Image (FileType 3) whose bytes are not an image', as
|
||||
body: form,
|
||||
})
|
||||
expect(res.status).toBe(400)
|
||||
expect(await res.json()).toEqual({ error: 'file is not a PNG, JPEG, GIF, WebP or BMP image' })
|
||||
expect(await res.json()).toEqual({ error: 'file is not a PNG or JPEG image' })
|
||||
})
|
||||
|
||||
it('POST /upload stores an Image (FileType 3) under the type its bytes say, not the claim', async () => {
|
||||
|
||||
Reference in New Issue
Block a user