mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-21 07:29:37 +01:00
fix: search api will not set magic date header when return array (#1598)
This commit is contained in:
parent
287ed3f88c
commit
158de3f768
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user