Commit 5394f9f0 authored by catch's avatar catch
Browse files

Issue #2840974 by alexpott, Wim Leers, axot: CookieResourceTestTrait test...

Issue #2840974 by alexpott, Wim Leers, axot: CookieResourceTestTrait test should send Content-Type request header
parent cae18a3b
......@@ -64,7 +64,10 @@ protected function initAuthentication() {
];
$request_options[RequestOptions::BODY] = $this->serializer->encode($request_body, 'json');
$request_options[RequestOptions::HEADERS]['Accept'] = 'application/json';
$request_options[RequestOptions::HEADERS] = [
'Accept' => 'application/json',
'Content-Type' => 'application/json',
];
$response = $this->request('POST', $user_login_url, $request_options);
// Parse and store the session cookie.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment