[Moin-user] Alternative to request.is_ssl?
Stephan Mueller
d454d at web.de
Mon Feb 22 13:59:49 EST 2010
* Thomas Waldmann <tw-public at gmx.de> [22.02.2010]:
> > in moinmoin-1.9 there seems request.is_ssl to be gone
>
> There were many changes in request due to the refactoring to
> WSGI/werkzeug.
yes, I noticed that and grep'ed for 'ssl' in the werkzeug module but
found nothing. Obviously I tried not hard enough. :(
> > (or is it just because i moved from fcgi to wsgi?)
>
> No, for moin it is all wsgi now anyway. If you'ld still run fcgi with
> moin 1.9, it would be webserver --fcgi--> flup --wsgi--> moin.
>
> > Is there an alternative way to find
> > out, if the connection is secured by ssl in moin-1.9?
>
> Try this: request.is_secure (that is a werkzeug request property that
> checks for https url scheme).
yes, this works as expected. Thanks for your help!
Steph.
More information about the Moin-user
mailing list