Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Static: Content Range's Content Length too long #436

jostylr opened this Issue · 1 comment

3 participants


In static.js, a content-range that is bigger than the length of the data leads to an incorrect (bigger) content-length being reported. This created an issue with the Facebook Open-Graph scraper, for example. I fixed it with an if statement around line 190ish:
requestedLength = opts.end - opts.start + 1; if ((requestedLength < stat.size) || (opts.start !== 0)) {
chunkSize = requestedLength;
res.statusCode = 206;
res.setHeader('Content-Range', 'bytes '
+ opts.start
+ '-'
+ opts.end
+ '/'
+ stat.size);

New to git.

@jostylr jostylr closed this
@jostylr jostylr reopened this

Fixed in Connect 2.x : a62a921

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.