Corrected syntax

This commit is contained in:
Fred Boniface 2022-09-17 20:58:16 +01:00
parent cd000594bc
commit b5da264ce6

View File

@ -33,14 +33,14 @@
"accept: application/json", "accept: application/json",
$giteaKey, $giteaKey,
"Content-Type: application/json" "Content-Type: application/json"
) );
// Prepare the request // Prepare the request
$issueData = array( $issueData = array(
'body' => $_POST["subject"], 'body' => $_POST["subject"],
'title' => $_POST["detail"], 'title' => $_POST["detail"],
'closed' => 'false' 'closed' => 'false'
) );
// Prepare CURL // Prepare CURL
$curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues'); $curlConnection = curl_init('https://git.fjla.uk/api/v1/repos/fred.boniface/athena.fb-infra.uk/issues');
@ -92,7 +92,7 @@
</form> </form>
<p>You have submitted:</p> <p>You have submitted:</p>
<p><?php echo $giteaResponse?> <p><?php echo $giteaResponse;?>
<!-- Footer --> <!-- Footer -->
<footer> <footer>