Skip to content

Commit

Permalink
Merge "Staticweb shortcut object 404s"
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenkins authored and openstack-gerrit committed Aug 16, 2013
2 parents 9d0f39e + 95ca8f4 commit 712ce59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion swift/common/middleware/staticweb.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,9 @@ def handle_object(self, env, start_response):
self._error = None
return self._error_response(resp, env, start_response)
if not self._listings and not self._index:
return self.app(env, start_response)
start_response(self._response_status, self._response_headers,
self._response_exc_info)
return resp
status_int = HTTP_NOT_FOUND
if self._index:
tmp_env = dict(env)
Expand Down

0 comments on commit 712ce59

Please sign in to comment.