[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-wallet-webex] branch master updated: remove X- heade
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-wallet-webex] branch master updated: remove X- headers |
Date: |
Sat, 24 Aug 2019 19:37:12 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-webex.
The following commit(s) were added to refs/heads/master by this push:
new 4e6d0a8b remove X- headers
4e6d0a8b is described below
commit 4e6d0a8ba067f6af804f6434a35da9c71a3986b3
Author: Florian Dold <address@hidden>
AuthorDate: Sat Aug 24 19:37:02 2019 +0200
remove X- headers
---
src/webex/wxBackend.ts | 31 +++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts
index 69ba8bad..7b49dcbc 100644
--- a/src/webex/wxBackend.ts
+++ b/src/webex/wxBackend.ts
@@ -551,21 +551,21 @@ function handleHttpPayment(
const fields = {
contract_url: decodeIfDefined(
- headers["x-taler-contract-url"] || headers["taler-contract-url"],
+ headers["taler-contract-url"],
),
offer_url: decodeIfDefined(
- headers["x-taler-offer-url"] || headers["taler-offer-url"],
+ headers["taler-offer-url"],
),
refund_url: decodeIfDefined(
- headers["x-taler-refund-url"] || headers["taler-refund-url"],
+ headers["taler-refund-url"],
),
resource_url: decodeIfDefined(
- headers["x-taler-resource-url"] || headers["taler-resource-url"],
+ headers["taler-resource-url"],
),
session_id: decodeIfDefined(
- headers["x-taler-session-id"] || headers["taler-session-id"],
+ headers["taler-session-id"],
),
- tip: decodeIfDefined(headers["x-taler-tip"] || headers["taler-tip"]),
+ tip: decodeIfDefined(headers["taler-tip"]),
};
const talerHeaderFound =
@@ -646,7 +646,7 @@ function handleBankRequest(
}
}
- const operation = headers["x-taler-operation"] || headers["taler-operation"];
+ const operation = headers["taler-operation"];
if (!operation) {
// Not a taler related request.
@@ -654,28 +654,27 @@ function handleBankRequest(
}
if (operation === "confirm-reserve") {
- const reservePub = headers["x-taler-reserve-pub"];
+ const reservePub = headers["taler-reserve-pub"];
if (reservePub !== undefined) {
console.log(`confirming reserve ${reservePub} via 201`);
wallet.confirmReserve({ reservePub });
} else {
console.warn(
- "got 'X-Taler-Operation: confirm-reserve' without
'X-Taler-Reserve-Pub'",
+ "got 'Taler-Operation: confirm-reserve' without 'Taler-Reserve-Pub'",
);
}
return;
}
if (operation === "create-reserve") {
- const amount = headers["x-taler-amount"] || headers["taler-amount"];
+ const amount = headers["taler-amount"];
if (!amount) {
- console.log("202 not understood (X-Taler-Amount missing)");
+ console.log("202 not understood (Taler-Amount missing)");
return;
}
- const callbackUrl =
- headers["x-taler-callback-url"] || headers["taler-callback-url"];
+ const callbackUrl = headers["taler-callback-url"];
if (!callbackUrl) {
- console.log("202 not understood (X-Taler-Callback-Url missing)");
+ console.log("202 not understood (Taler-Callback-Url missing)");
return;
}
try {
@@ -692,9 +691,9 @@ function handleBankRequest(
chrome.tabs.update(tabId, { url: errRedirectUrl });
return;
}
- const wtTypes = headers["x-taler-wt-types"] || headers["taler-wt-types"];
+ const wtTypes = headers["taler-wt-types"];
if (!wtTypes) {
- console.log("202 not understood (X-Taler-Wt-Types missing)");
+ console.log("202 not understood (Taler-Wt-Types missing)");
return;
}
const params = {
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-wallet-webex] branch master updated: remove X- headers,
gnunet <=