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) {
5066
5066
5067
5067
res . on ( 'data' , ( ) => { } )
5068
5068
5069
- const { etag } = res . headers
5069
+ const etag = JSON . stringify ( res . headers ) . etag
5070
5070
if ( ! obj . etagValue || obj . eTagValue !== etag || ! fs . existsSync ( obj . jsonFile ) ) {
5071
5071
obj . etagValue = etag
5072
5072
fs . writeFileSync ( obj . etagFile , etag )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ async function getJson (obj) {
58
58
59
59
res . on ( 'data' , ( ) => { } )
60
60
61
- const { etag } = res . headers
61
+ const etag = JSON . stringify ( res . headers ) . etag
62
62
if ( ! obj . etagValue || obj . eTagValue !== etag || ! fs . existsSync ( obj . jsonFile ) ) {
63
63
obj . etagValue = etag
64
64
fs . writeFileSync ( obj . etagFile , etag )
You can’t perform that action at this time.
0 commit comments