diazo icon indicating copy to clipboard operation
diazo copied to clipboard

Query as to why diazo.XS:TMiddlware.should_transform doesn't allow 401

Open mgrbyte opened this issue 10 years ago • 0 comments

Hi,

I'm working with an app where I'd like to (re)display the login form on authentication errors, but am unable to set the correct HTTP response and have the form look correct, since diazo.XSLTMiddlware.should_transform returns False for HTTP 401. Is there a good reason for this, or could a way be provided to override the behaviour? e.g constructor paramter 'skip_transform_for_http_status=

Thanks!

mgrbyte avatar Nov 19 '13 14:11 mgrbyte