commit 6747badd0c47308a715feff6a2912df3a2f31c0d
parent 2a8a10384dc4c8ea1b7f4b37b6d49d0cb5ca6367
Author: Marcello Stanisci <marcello.stanisci@inria.fr>
Date: Wed, 9 Nov 2016 22:10:02 +0100
Fix returned HTTP header in tutorial
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/manual.texi b/doc/manual.texi
@@ -935,7 +935,7 @@ transaction_id=<TRANSACTION_ID>×tamp=<CONTRACTTIMESTAMP>
# FIXME: this can't be right, you want to call "json_deocde", not
# return it as a literal string in the header! (i.e. insert '. before json_decode and remove ' at the end)?
# All this code should be tested!
- header ('X-Taler-Contract-Hash: json_decode($response)["H_contract"]');
+ header ('X-Taler-Contract-Hash: ' . json_decode($response)["H_contract"]);
header ('X-Taler-Offer-Url: /donate');
header ('X-Taler-Pay-Url: /pay'); ?>
</body>