Fix for #1626: Github: OAuth token no longer retrieved (Invalid credentials.)

See https://github.com/composer/composer/issues/1626

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 update fixes the array by moving the content-type header to the end.