Opened 9 years ago
Last modified 9 years ago
#26499 closed Bug
AuthenticationMiddleware apparently accesses request.POST — at Version 1
Description (last modified by ) ¶
The middleware AuthenticationMiddleware
apparently accesses request.POST
, because if I include it I get the exception You cannot access body after reading from request's data stream
once I try to read request.body
.
Everything works fine if I remove it from the list of middlewares.
I wasn't able to find the source code of AuthenticationMiddleware
, but if it indeed does so, this should be considered a bug.
I'm running Python 2 and the latest version of Django.
Note:
See TracTickets
for help on using tickets.