Hi,
I eventually solved my problem by modifying django/core/handlers/modpython.py
so that request.META would contain a key HTTPS.
--- core/handlers/modpython.py (revision 2299)
+++ core/handlers/modpython.py (working copy)
@@ -86,6 +86,8 @@
for key, value in self._req.headers_in.items():
key = 'HTTP_' + key.upper().replace('-', '_')
self._meta[key] = value
+ if hasattr(self._req.subprocess_env,'HTTPS'):
+ self._meta['HTTPS'] = self._req.subprocess_env['HTTPS']
return self._meta
def _get_raw_post_data(self):
Is this a good/bad idea? Any thoughts? Let me know if you guys find it
useful I can add a patch to trac.
Best Regards
jakub
On 5/5/06, Jakub Labath <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have web server that is accessed both via http and https is there a
> way for me to tell which is used?
>
> Thanks
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---