Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
jostylr opened this Issue · 1 comment

3 participants

@jostylr

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
@nicolsc

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.