0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

fix: search api will not set magic date header when return array (#1598)

This commit is contained in:
Favo Yang 2019-12-14 19:08:37 +08:00 committed by Juan Picado @jotadeveloper
parent 287ed3f88c
commit 158de3f768

View file

@ -31,7 +31,7 @@ export default function(route, auth, storage): void {
* when request /-/all/since, response is an array
*/
const respShouldBeArray = req.path.endsWith('/since');
res.set('Date', 'Mon, 10 Oct 1983 00:12:48 GMT');
if (!respShouldBeArray) res.set('Date', 'Mon, 10 Oct 1983 00:12:48 GMT');
const check_finish = function(): void {
if (!received_end) {
return;