Bug #4063

Fix partial content responses

Added by Sofia Papagiannaki over 10 years ago. Updated about 10 years ago.

Status:Resolved Start date:06/25/2013
Priority:Medium Due date:
Assignee:Sofia Papagiannaki % Done:

0%

Category:Pithos Spent time: -
Target version:-

Description

Pithos for object data replies initializes the response with an iterator as content.

This in django 1.2 has as a result the first time the response content is accessed to be consumed.

Pithos also used to remove the Content-Length header
from the partial content responses (multipart/byteranges Content-Type)

However, the common api decorator when there is no Content-Length header
enforces the length of the response content,
so in the case of partial content responses the response content is consumed
before being returned to the client.

Associated revisions

Revision 4d244f4a
Added by Sofia Papagiannaki over 10 years ago

pithos: Fix partial content responses

Refs: #4063

Revision 981d3b0d
Added by Sofia Papagiannaki about 10 years ago

pithos: Fix partial content responses

Refs: #4063

History

#1 Updated by Sofia Papagiannaki about 10 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF