Fixed headers sent in addMissingMetadata()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 22 Jul 2015 21:26:31 +0000 (14:26 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 5 Aug 2015 08:46:52 +0000 (01:46 -0700)
commit84e389ec68a3b91a940e6a9029484f89b451b0aa
treef314a8e1700e9bff2564c09fa0a734748b515dc8
parent98f14cf7dc1c65bdf72446720b8d7898be8d64f9
Fixed headers sent in addMissingMetadata()

* This used to relay back *all* of the GET headers, which includes
  things that are not changeable (Content-Length) or make no sense
  (x-trans-id). Only send the actual HTTP/metadata headers. Oddly
  enough sending garbage headers gives a 2XX response, but does
  not actually change anything in Swift.

Bug: T105810
Change-Id: Id4829cf998a6d8763fd26d49cd8d9c16cf5527dd
includes/filebackend/SwiftFileBackend.php