Skip to content
Myr

Changed: res.send() only set ETag when not previously set

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 18cdb3d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/response.js+1 added-1 removed
110 unmodified lines
111112 // ETag support113 // TODO: W/ support114 if (len > 1024) {115 this.set('ETag', Buffer.isBuffer(body)115 if (!this.get('ETag')) this.set('ETag', Buffer.isBuffer(body)116 ? crc.buffer.crc32(body)117 : crc.crc32(body));118 if (req.fresh) this.statusCode = 304;119 }
533 unmodified lines