Commit 5744530b authored by Stephan Großberndt's avatar Stephan Großberndt
Browse files

[TASK] Add response codes of intercept and b13.dev to patchset_created_log

parent 0c4e29b3
......@@ -30,7 +30,7 @@ if ($result === 0 && !empty($composerJson)) {
$http = curl_init('https://packagist.org/packages/' . $composerJson->name);
curl_setopt($http, CURLOPT_RETURNTRANSFER, TRUE);
$result = curl_exec($http);
$http_status = curl_getinfo($http, CURLINFO_HTTP_CODE);
$http_status = curl_getinfo($http, CURLINFO_RESPONSE_CODE);
curl_close($http);
if ($http_status === 200) {
......
......@@ -25,5 +25,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($args));
// execute post
$result = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
// close connection
curl_close($ch);
......@@ -33,5 +33,7 @@ curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
// execute post
$result = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
// close connection
curl_close($ch);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment