|
@@ -29,7 +29,7 @@ |
|
|
block discarded – undo |
|
29
|
29
|
$ch = curl_init(); |
|
30
|
30
|
curl_setopt($ch, CURLOPT_URL, $slack_webhook); |
|
31
|
31
|
curl_setopt($ch, CURLOPT_POST, 1); |
|
32
|
|
- curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json','Content-Length: ' . strlen($data_json))); |
|
|
32
|
+ curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-Length: ' . strlen($data_json))); |
|
33
|
33
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_json); |
|
34
|
34
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
|
35
|
35
|
curl_exec($ch); |
Please login to merge, or discard this patch.