Missing 'content-length' causes KeyError

Description

work-around:

Environment

None

Activity

Show:
Xavier Schildwachter
February 16, 2016, 7:16 PM

Verified fixed head of develop.

Chris Bare
February 3, 2016, 10:21 PM
Edited

The reason for this, in the case of this particular entity, was that accessing its URL returned an HTTP response with Transfer-Encoding : chunked and therefore no Content-Length header.

Not sure if this is entirely kosher, but I changed the offending line of code default to the length of the response's content:

...and that seems to work.

Xavier Schildwachter
January 28, 2016, 7:19 PM
Edited

I'm still getting a KeyError, expected it would work like (note: stack trace is
slightly different).

Fixed

Assignee

Chris Bare

Reporter

Chris Bare

Labels

None

Validator

Xavier Schildwachter

Development Area

None

Release Version History

None

Slack Channel

None

Components

Fix versions

Affects versions

Priority

Major