// Ensure that we don't have the header in different case and set the new value.
$options['_conditional'
] = Psr7\Utils::
caselessRemove(['Content-Type'
],
$options['_conditional'
]);
$options['_conditional'
]['Content-Type'
] = 'application/x-www-form-urlencoded';
} if (isset($options['multipart'
])) { $options['body'
] =
new Psr7\
MultipartStream($options['multipart'
]);
unset($options['multipart'
]);
} if (isset($options['json'
])) { $options['body'
] = Utils::
jsonEncode($options['json'
]);
unset($options['json'
]);
// Ensure that we don't have the header in different case and set the new value.
$options['_conditional'
] = Psr7\Utils::
caselessRemove(['Content-Type'
],
$options['_conditional'
]);
$options['_conditional'
]['Content-Type'
] = 'application/json';
} if (!
empty($options['decode_content'
]) &&
$options['decode_content'
] !== true
) { // Ensure that we don't have the header in different case and set the new value.
$options['_conditional'
] = Psr7\Utils::
caselessRemove(['Accept-Encoding'
],
$options['_conditional'
]);