Permalink
Browse files

update curl headers per tszming

Summary:adde Content Type and Accept: application/js to the header.

Reviewers:

Test Plan:

Task ID:
  • Loading branch information...
1 parent 7ec5ac0 commit e780c73982925742e796a1f81766d21daccd05f5 Justin Bishop committed Jan 19, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 WebDriverBase.php
View
@@ -132,8 +132,12 @@ protected function curl(
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($curl, CURLOPT_HTTPHEADER,
- array('application/json;charset=UTF-8'));
+ curl_setopt(
+ $curl,
+ CURLOPT_HTTPHEADER,
+ array(
+ 'Content-Type: application/json;charset=UTF-8',
+ 'Accept: application/json'));
if ($http_method === 'POST') {
curl_setopt($curl, CURLOPT_POST, true);

0 comments on commit e780c73

Please sign in to comment.