Skip to content

Commit 75b1da4

Browse files
committed
need json content-type header
1 parent c9940c1 commit 75b1da4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Services/CyclopsService.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ public function setBrandOptInStatus(CustomerEntity $customerEntity, bool $optIn)
119119

120120
$request = new HttpRequest($url, 'post', $brands);
121121
$request->addHeader('Authorization', 'Basic ' . $this->authorization);
122+
$request->addHeader('Content-Type', 'application/json');
122123
$response = $this->httpClient->getResponse($request);
123124
return $response;
124125
}

0 commit comments

Comments
 (0)