Staticweb middleware always searchs html
for error response when response status code
is not redirect.
It causes swift to return error response
even if the request succeeded.
(e.g. When finding index.html with 200,
staticweb returns 200error.html
if it exist)
This patch modifies the constraint on response
status and fix bug 1204319.
Reviewed: https:/ /review. openstack. org/38425 github. com/openstack/ swift/commit/ 0508842470ab27e 5635d858bf0f9c8 c14e1b300e
Committed: http://
Submitter: Jenkins
Branch: master
commit 0508842470ab27e 5635d858bf0f9c8 c14e1b300e
Author: Kota Tsuyuzaki <email address hidden>
Date: Tue Jul 23 19:28:08 2013 -0700
Fix incorrect status handling at staticweb
Staticweb middleware always searchs html
for error response when response status code
is not redirect.
It causes swift to return error response
even if the request succeeded.
(e.g. When finding index.html with 200,
staticweb returns 200error.html
if it exist)
This patch modifies the constraint on response
status and fix bug 1204319.
Fixes bug #1204319.
Change-Id: Ib83c303917da7f b94999f2d4d3506 3b450d0e992