1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Merge pull request #3638 from appwrite/refactor-mock-download-response

Consistent response for mock download
This commit is contained in:
Eldad A. Fux 2022-08-04 14:29:04 +03:00 committed by GitHub
commit 73817a311b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ App::get('/v1/mock/tests/general/download')
->addHeader('Content-Disposition', 'attachment; filename="test.txt"')
->addHeader('Expires', \date('D, d M Y H:i:s', \time() + (60 * 60 * 24 * 45)) . ' GMT') // 45 days cache
->addHeader('X-Peak', \memory_get_peak_usage())
->send("Download test passed.")
->send("GET:/v1/mock/tests/general/download:passed")
;
});