Bad redirection when SSLPORT is set

Issue #1173 open
Francis L created an issue

There's an error when SATCHMO_SETTINGS['SSL'] and SSLPORT are sets.

The SSLMiddleware code just add the SSLPORT to the old one, causing the redirect to failed.

SSLPORT = 8443 SATCHMO_SETTINGS['SSL'] = True

requested : http://localhost:8000/securedsection

redirect : https://localhost:8000:8443/securedsection

Here is a patch that resolve the issue

Comments (2)

  1. Log in to comment