A bug in PHP prevents the headers from correctly beeing sent when a content-type header is present and
NOT at the end of the array

https://bugs.php.net/bug.php?id=61548

This updates fixes the array by moving the content-type header to the end
Merge remote-tracking branch 'tacker/private-repos-failing-with-invalid-credentials'
Fix cs