Skip to content
Myr

deps: etag@~1.8.0

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

authored by Douglas Christopher Wilson · committed by Douglas Christopher Wilson · parent f2bbd10 · Browse files · 4 files+20 added−17 removed
This commit

State

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

Diff stats

4 files+20 added−17 removed

  • tests:+16 added−16 removed
  • other:+4 added−1 removed

4 files+20 added−17 removed

modified:test/res.send.js+8 added-8 removed
131 unmodified lines
132 });133134 request(app)135 .get('/')136 .expect('ETag', 'W/"3e7-VYgCBglFKiDVAcpzPNt4Sg"')136 .expect('ETag', 'W/"3e7-qPnkJ3CVdVhFJQvUBfF10TmVA7g"')137 .expect(200, done);138 })139140 it('should not override Content-Type', function(done){
59 unmodified lines
200 });201202 request(app)203 .get('/')204 .expect('ETag', 'W/"3e7-VYgCBglFKiDVAcpzPNt4Sg"')204 .expect('ETag', 'W/"3e7-qPnkJ3CVdVhFJQvUBfF10TmVA7g"')205 .expect(200, done);206 })207208 it('should not override Content-Type', function(done){
145 unmodified lines
354 app.enable('etag');355356 request(app)357 .get('/')358 .expect('ETag', 'W/"c-ZUfd0NJ26qwjlKF4r8qb2g"')358 .expect('ETag', 'W/"c-IgR/L5SF7CJQff4wxKGF/vfPuZ0"')359 .expect(200, done);360 });361362 methods.forEach(function (method) {
7 unmodified lines
370 });371372 request(app)373 [method]('/')374 .expect('ETag', 'W/"c-ZUfd0NJ26qwjlKF4r8qb2g"')374 .expect('ETag', 'W/"c-IgR/L5SF7CJQff4wxKGF/vfPuZ0"')375 .expect(200, done);376 })377 });378
7 unmodified lines
386 app.enable('etag');387388 request(app)389 .get('/')390 .expect('ETag', 'W/"0-1B2M2Y8AsgTpgAmY7PhCfg"')390 .expect('ETag', 'W/"0-2jmj7l5rSw0yVb/vlWAYkK/YBwk"')391 .expect(200, done);392 })393394 it('should send ETag for long response', function (done) {
7 unmodified lines
402 app.enable('etag');403404 request(app)405 .get('/')406 .expect('ETag', 'W/"3e7-VYgCBglFKiDVAcpzPNt4Sg"')406 .expect('ETag', 'W/"3e7-qPnkJ3CVdVhFJQvUBfF10TmVA7g"')407 .expect(200, done);408 });409410 it('should not override ETag when manually set', function (done) {
73 unmodified lines
484 });485486 request(app)487 .get('/')488 .expect('ETag', '"d-Otu60XkfuuPskIiUxJY4cA"')488 .expect('ETag', '"d-HwnTDHB9U/PRbFMN1z1wps51lqk"')489 .expect(200, done);490 })491 })492
8 unmodified lines
501 });502503 request(app)504 .get('/')505 .expect('ETag', 'W/"d-Otu60XkfuuPskIiUxJY4cA"')505 .expect('ETag', 'W/"d-HwnTDHB9U/PRbFMN1z1wps51lqk"')506 .expect(200, done)507 })508 })509
41 unmodified lines
modified:test/utils.js+8 added-8 removed
modified:History.md+3 added
6 unmodified lines
7 - Deprecated `DEBUG_FD` environment variable set to `3` or higher8 - Fix error when running under React Native9 - Use same color for same namespace10 - deps: ms@0.7.211 * deps: etag@~1.8.012 - Use SHA1 instead of MD5 for ETag hashing13 - Works with FIPS 140-2 OpenSSL configuration14 * deps: finalhandler@~1.0.015 - Fix exception when `err` cannot be converted to a string16 - Fully URL-encode the pathname in the 40417 - Only include the pathname in the 404 message
3170 unmodified lines
modified:package.json+1 added-1 removed