File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5066,7 +5066,7 @@ async function getJson (obj) {
50665066
50675067 res . on ( 'data' , ( ) => { } )
50685068
5069- const { etag } = res . headers
5069+ const etag = JSON . stringify ( res . headers ) . etag
50705070 if ( ! obj . etagValue || obj . eTagValue !== etag || ! fs . existsSync ( obj . jsonFile ) ) {
50715071 obj . etagValue = etag
50725072 fs . writeFileSync ( obj . etagFile , etag )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async function getJson (obj) {
5858
5959 res . on ( 'data' , ( ) => { } )
6060
61- const { etag } = res . headers
61+ const etag = JSON . stringify ( res . headers ) . etag
6262 if ( ! obj . etagValue || obj . eTagValue !== etag || ! fs . existsSync ( obj . jsonFile ) ) {
6363 obj . etagValue = etag
6464 fs . writeFileSync ( obj . etagFile , etag )
You can’t perform that action at this time.
0 commit comments