Skip to content
Myr

Merge pull request #1426 from piscis/master

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

change crc generator because of license issue

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents 5cf29a3, 18a3cc0 · Browse files · 3 files+23 added−5 removed
This commit

State

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

Diff stats

3 files+23 added−5 removed

  • tests:+20 added−0 removed
  • other:+3 added−5 removed

3 files+23 added−5 removed

modified:lib/utils.js+2 added-4 removed
2 unmodified lines
3 * Module dependencies.4 */56var mime = require('connect').mime7 , crc = require('crc');7 , crc32 = require('buffer-crc32');89/**10 * Return ETag for `body`.11 *
2 unmodified lines
14 * @api private15 */1617exports.etag = function(body){18 return '"' + (Buffer.isBuffer(body)19 ? crc.buffer.crc32(body)20 : crc.crc32(body)) + '"';18 return '"' + crc32.signed(body) + '"';19};2021/**22 * Make `locals()` bound to the given `obj`.
260 unmodified lines
modified:test/utils.js+20 added
modified:package.json+1 added-1 removed
13 unmodified lines
14 "commander": "0.6.1",15 "range-parser": "0.0.4",16 "mkdirp": "0.3.3",17 "cookie": "0.0.4",18 "crc": "0.2.0",18 "buffer-crc32": "0.1.1",19 "fresh": "0.1.0",20 "methods": "0.0.1",21 "send": "0.1.0",22 "cookie-signature": "0.0.1",
34 unmodified lines