Do not strip Content-Type header for POST requests to swift
authorCormac Parle <cparle@wikimedia.org>
Mon, 20 Nov 2017 11:25:20 +0000 (11:25 +0000)
committerGilles <gdubuc@wikimedia.org>
Tue, 28 Nov 2017 14:24:27 +0000 (14:24 +0000)
libcurl adds 'Content-Type: application/x-www-form-urlencoded'
to a POST request if the 'Content-Type' header is not set
manually. Because data in swift is updated via POST, the
Content-Type header must be set explicitly to stop a run of
refreshFileHeaders.php from changing the Content-Type of all
files in swift to application/x-www-form-urlencoded

Bug: T178849
Change-Id: I43c21bc1b73e37104cf07cd5f1c1557f472b9898


No differences found