Skip to content

Commit

Permalink
Fix content-type header not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
shalvah committed Jul 1, 2021
1 parent 0ec6f1c commit d5a7b6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions resources/views/partials/example-requests/php.md.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
[
@if(!empty($endpoint->headers))@php
// We don't need the Content-Type header because Guzzle sets it automatically when you use json or multipart.
unset($endpoint->headers['Content-Type']);
$headers = $endpoint->headers;
unset($headers['Content-Type']);
@endphp
'headers' => {!! u::printPhpValue($endpoint->headers, 8) !!},
'headers' => {!! u::printPhpValue($headers, 8) !!},
@endif
@if(!empty($endpoint->cleanQueryParameters))
'query' => {!! u::printQueryParamsAsKeyValue($endpoint->cleanQueryParameters, "'", "=>", 12, "[]", 8) !!},
Expand Down

0 comments on commit d5a7b6d

Please sign in to comment.