summaryrefslogtreecommitdiff
path: root/src/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend')
-rw-r--r--src/frontend/checkout.php2
-rw-r--r--src/frontend/generate_taler_contract.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/checkout.php b/src/frontend/checkout.php
index 72e78944..7acfd2f5 100644
--- a/src/frontend/checkout.php
+++ b/src/frontend/checkout.php
@@ -89,7 +89,7 @@ function handle_contract(json_contract)
function taler_pay(form)
{
var contract_request = new XMLHttpRequest();
- contract_request.open("POST", "/generate_taler_contract.php", true);
+ contract_request.open("GET", "/generate_taler_contract.php", true);
contract_request.onload = function (e)
{
if (contract_request.readyState == 4)
diff --git a/src/frontend/generate_taler_contract.php b/src/frontend/generate_taler_contract.php
index 52e11940..817aa0ed 100644
--- a/src/frontend/generate_taler_contract.php
+++ b/src/frontend/generate_taler_contract.php
@@ -151,7 +151,7 @@ if ($cli_debug && !$backend_test)
// Craft the HTTP request, note that the backend
// could be on an entirely different machine if
// desired.
-$req = new http\Client\Request ("POST",
+$req = new http\Client\Request ("GET",
"http://" . $_SERVER["SERVER_NAME"] . "/backend/contract",
array ("Content-Type" => "application/json"));
$req->getBody()->append ($json);