Permalink
Browse files

cleanup double repeated response.headers['X-Timestamp'] = file.metada…

…ta['X-Timestamp']

in swift.obj.server.HEAD

Change-Id: Ie7cf853319589db7c48836dd5d7fd5e68cb009cd
  • Loading branch information...
1 parent 6801920 commit 5b02fded4e9ea2770d32b00f9be56a343b824c1a @vitoordaz vitoordaz committed Oct 3, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 swift/obj/server.py
View
1 swift/obj/server.py
@@ -789,7 +789,6 @@ def HEAD(self, request):
response.content_length = file_size
if 'Content-Encoding' in file.metadata:
response.content_encoding = file.metadata['Content-Encoding']
- response.headers['X-Timestamp'] = file.metadata['X-Timestamp']
self.logger.timing_since('HEAD.timing', start_time)
return response

0 comments on commit 5b02fde

Please sign in to comment.