Skip to content

Commit

Permalink
Remove extra Content-Type header
Browse files Browse the repository at this point in the history
  • Loading branch information
mittsh committed Sep 21, 2015
1 parent 88851cf commit b3a37b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions php.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ curl_setopt($ch, CURLOPT_HTTPHEADER, [
{{/headers.has_headers}}
{{! ----- }}
{{#body.has_raw_body}}
// Set header
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: text/plain']);

// Create body
$body = '{{{body.raw_body}}}';
{{/body.has_raw_body}}
Expand Down Expand Up @@ -54,9 +51,6 @@ $body = [
{{/body.has_multipart_body}}
{{! ----- }}
{{#body.has_json_body}}
// Set header
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type:application/json']);

// Create body
$json_array = {{{body.json_body_object}}};
$body = json_encode($json_array);
Expand Down

0 comments on commit b3a37b7

Please sign in to comment.