#25964: AttributeError: 'HttpResponse' object has no attribute '_reason_phrase'
------------------------------+--------------------------------------
     Reporter:  Wtower        |                    Owner:  nobody
         Type:  Bug           |                   Status:  new
    Component:  Core (Other)  |                  Version:  1.9
     Severity:  Normal        |               Resolution:
     Keywords:                |             Triage Stage:  Unreviewed
    Has patch:  0             |      Needs documentation:  0
  Needs tests:  0             |  Patch needs improvement:  0
Easy pickings:  0             |                    UI/UX:  0
------------------------------+--------------------------------------
Changes (by Wtower):

 * status:  closed => new
 * resolution:  invalid =>


Comment:

 I will insist on this one. I understand the inconvenience, but please
 leave aside my initial strong statement and take a look at this:

 The error is very specific: "AttributeError: 'HttpResponse' object has no
 attribute '_reason_phrase' ".

 If I change line 181 of wsgi.py from:

 {{{
         status = '%s %s' % (response.status_code, response.reason_phrase)
 }}}

 {{{
         status = '%s %s' % (response.status_code, 'a random text')
  }}}

 Everything works fine. Naturally, as in Django 1.9 response does not have
 a reason_phrase.

 I do not understand the conditions under I meet the particular line of
 code. This happens to me only for the index page.

--
Ticket URL: <https://code.djangoproject.com/ticket/25964#comment:3>
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.6c35e811fc8590fd9cad792594b77321%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to