You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If response is a stream iterator with text/html content type plone.protect tries to parse it even its response.body is an empty string. (A special case with stream iterator responses.)
2015-09-04 20:19:51 WARNING plone.protect error parsing dom, failure to add csrf token to response for url http://localhost:8080/Plone/sample-folder/copy_of_front-page/++contentlayout++default/document.html
Maybe plone.protect should check and not parse if not result (allow it to be empty string).
The text was updated successfully, but these errors were encountered:
if a text/html response does not contain any data (eg empty page for an ajax request)
we do not log a warning that no csrf token could be added
this fixes#15
If response is a stream iterator with
text/html
content type plone.protect tries to parse it even its response.body is an empty string. (A special case with stream iterator responses.)Maybe plone.protect should check and not parse if not result (allow it to be empty string).
The text was updated successfully, but these errors were encountered: