merchant-frontend-examples

ZZZ: Inactive/Deprecated
Log | Files | Refs

commit 313c1c2e3570edc91373f482864137aae7d4859d
parent 5ab43610c68dfecaa34fc13ad7017cb025f1e32c
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date:   Wed, 16 Nov 2016 13:54:42 +0100

fix how fetch http status code

Diffstat:
Mphp/generate-contract.php | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/php/generate-contract.php b/php/generate-contract.php @@ -13,7 +13,7 @@ // Here the frontend POSTs the proposal to the backend $response = post_to_backend("/contract", $proposal); // We always return verbatim what the backend returned - http_response_code($response["code"]); + http_response_code($response["status_code"]); if (200 != $response["status_code"]) { echo build_error($response, "Failed to generate contract"); return;