Skip to content

Commit

Permalink
Fixed 400 Bad Request
Browse files Browse the repository at this point in the history
As suggested here new headers are needed hatboysam/JavaSnap@ef5f821
  • Loading branch information
Andreas Heiberg committed Dec 29, 2014
1 parent c34f418 commit a57a964
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 @@ -295,6 +295,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 a57a964

Please sign in to comment.