Skip to content

Commit

Permalink
Merge pull request #66 from AndreasHeiberg/patch-1
Browse files Browse the repository at this point in the history
Fixed 400 Bad Request
  • Loading branch information
JorgenPhi committed Dec 29, 2014
2 parents 7bdf68d + a57a964 commit fe0dd1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/snapchat_agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,10 @@ public function post($endpoint, $data, $params, $multipart = FALSE) {
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => $data,
CURLOPT_URL => self::URL . $endpoint,
CURLOPT_HTTPHEADER => array(
'Accept-Language: en-GB;q=1, en;q=0.9',
'Accept-Locale: en'
),
);
curl_setopt_array($ch, $options);

Expand Down

0 comments on commit fe0dd1c

Please sign in to comment.