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:
parent
287ed3f88c
commit
158de3f768
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue