Changes between Version 1 and Version 3 of Ticket #28786


Ignore:
Timestamp:
Nov 8, 2017, 7:28:37 AM (7 years ago)
Author:
spudnica
Comment:

Replying to Tim Graham:

I think we'll need more details about how to reproduce the problem.

  1. I guess the issue is related to way that content-length is calculated. If I manually set content-length to match particular page I request for, I am able to open this in Chrome. It seems that str(len(response.content)) is not returning proper reponse length i CommonMiddleware for me and firefox was just ignoring it.
  2. If I order CommonMiddleware at first place in my middlewares list, site is working properly, though it is against reccommendations in Django docs guide Middleware ordering.
  3. If i disable all middlewares that are added to site by myself, and place CommonMiddleware in right order, the error doesnt occur, so its realted to way how the length size calculated.

Legend:

Unmodified
Added
Removed
Modified
Back to Top