wsgiserver: redirect instead of error for HTTP request over SSL

15 views
Skip to first unread message

Forest Bond

unread,
May 12, 2011, 9:38:08 AM5/12/11
to cherryp...@googlegroups.com
Hi,

The CherryPy WSGI server sends an HTTP 400 response when a plain HTTP request is
unexpectedly received by a server expecting SSL. It seems reasonable to instead
redirect the client to use HTTPS. I suppose this could be configurable to
maintain backwards compatibility. I would be happy to provide a patch if it
would be accepted.

Thoughts?

Thanks,
Forest
--
Forest Bond
rapidrollout.com / alittletooquiet.net / pytagsfs.org

signature.asc
Reply all
Reply to author
Forward
0 new messages