Skip to content

Commit

Permalink
Merge pull request #81 from wavpro/patch-1
Browse files Browse the repository at this point in the history
Update php.js
  • Loading branch information
jozsefsallai authored Aug 13, 2022
2 parents 864ec6d + 564eb88 commit 96c1d0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/generateCode/targets/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ curl_setopt_array($curl, array(
}

if (req.authHeader) {
headers.push(`${req.authHeader.name}: ${req.authHeader.value}`);
headers.push(`'${req.authHeader.name}: ${req.authHeader.value}'`);
}

if (headers.length) {
opts.push(`CURLOPTS_HTTPHEADER => array(
opts.push(`CURLOPT_HTTPHEADER => array(
${headers.join(',\n ')}
)`);
}
Expand Down

0 comments on commit 96c1d0b

Please sign in to comment.