]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Fix Status-Line in HTTP response
authorIvan Kolodyazhny <e0ne@e0ne.info>
Tue, 6 Oct 2015 11:52:53 +0000 (14:52 +0300)
committerIvan Kolodyazhny <e0ne@e0ne.info>
Tue, 13 Oct 2015 10:11:10 +0000 (10:11 +0000)
commit17802086f6c4ac846cdf5d9bfe8d4eb4908cc8ff
treee5851371c0d461ce8256269398db38a24c52215d
parentfa027776fa638c1305389660352a183224439248
Fix Status-Line in HTTP response

There is a strict rule about constructing status line for HTTP:
'...Status-Line, consisting of the protocol version followed by a
numeric status code and its associated textual phrase, with each
element separated by SP characters'
(http://www.faqs.org/rfcs/rfc2616.html)

This patch coerces filling associated textual phrase.

Also removed unused code from cinder/tests/unit/test_exception.py

Change-Id: Ia9099fb5020cee02bfee2cd0e8e111845918c36c
Closes-Bug: #1496055
Co-Authored-By: Marian Horban <mhorban@mirantis.com>
cinder/exception.py
cinder/tests/unit/test_exception.py