Skip to content

Commit 96c1d0b

Browse files
authored
Merge pull request #81 from wavpro/patch-1
Update php.js
2 parents 864ec6d + 564eb88 commit 96c1d0b

File tree

1 file changed

+2
-2
lines changed
  • src/lib/generateCode/targets

1 file changed

+2
-2
lines changed

src/lib/generateCode/targets/php.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ curl_setopt_array($curl, array(
3838
}
3939

4040
if (req.authHeader) {
41-
headers.push(`${req.authHeader.name}: ${req.authHeader.value}`);
41+
headers.push(`'${req.authHeader.name}: ${req.authHeader.value}'`);
4242
}
4343

4444
if (headers.length) {
45-
opts.push(`CURLOPTS_HTTPHEADER => array(
45+
opts.push(`CURLOPT_HTTPHEADER => array(
4646
${headers.join(',\n ')}
4747
)`);
4848
}

0 commit comments

Comments
 (0)