truncated response content in middleware

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

truncated response content in middleware

Václav Mach
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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/2d292c0f-e70b-7fca-e719-039f3b59c197%40cesnet.cz.

middleware.py (1K) Download Attachment
smime.p7s (4K) Download Attachment