truncated response content in middleware

4 views
Skip to first unread message

Václav Mach

unread,
Jul 28, 2019, 2:08:59 PM7/28/19
to django...@googlegroups.com
Hi,

i'm trying to build my own middleware for server side javascript
prerending. It's currently very simple (see attachment). It seems to be
working fine for few pages but for some other pages the reponse.content
is somehow truncated (line 20). The reponse.content is truncated at
exactly 4096 bytes. Is there some size limit to the reponse that is
processed at a time? Can i somehow process the whole response?

cheers,
Vaclav
--
Václav Mach
tel: +420 234 680 206
CESNET, z.s.p.o.
www.cesnet.cz
middleware.py
Reply all
Reply to author
Forward
0 new messages