#7603: Add HttpRequest.scheme property
-------------------------------------+-------------------------------------
     Reporter:  nslater              |                    Owner:
         Type:  New feature          |  unaizalakain
    Component:  HTTP handling        |                   Status:  assigned
     Severity:  Normal               |                  Version:  master
     Keywords:                       |               Resolution:
    Has patch:  1                    |             Triage Stage:  Ready for
  Needs tests:  0                    |  checkin
Easy pickings:  0                    |      Needs documentation:  0
                                     |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by unaizalakain):

 In fact, scheme is gotten from `wsgi.url_scheme` WSGI variable.
 [[http://wsgi.readthedocs.org/en/latest/definitions.html?highlight=url_scheme
 #envvar-wsgi.url_scheme|The docs]] state that:

     `wsgi.url_scheme`: A string representing the "scheme" portion of the
 URL at which the application is being invoked. Normally, this will have
 the value "http" or "https", as appropriate.

 It's true that this will always be `http` or `https` but there's no
 guarantee about it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/7603#comment:17>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.15fa200e940a0133c4a9255a5d0f6341%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to