diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-26 00:29:02 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-26 00:29:02 +0200 |
commit | c367669d3bbeac76bc2f2b4d27f338f3bd6c9876 (patch) | |
tree | c06db8ddc7e7f099127ec1e4d9c77ee4ef7e6caa /src/webex/wxBackend.ts | |
parent | 4e6d0a8ba067f6af804f6434a35da9c71a3986b3 (diff) | |
download | wallet-core-c367669d3bbeac76bc2f2b4d27f338f3bd6c9876.tar.xz |
remove deprecated headers
Diffstat (limited to 'src/webex/wxBackend.ts')
-rw-r--r-- | src/webex/wxBackend.ts | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts index 7b49dcbc4..594418ebf 100644 --- a/src/webex/wxBackend.ts +++ b/src/webex/wxBackend.ts @@ -550,21 +550,11 @@ function handleHttpPayment( url ? decodeURIComponent(url) : undefined; const fields = { - contract_url: decodeIfDefined( - headers["taler-contract-url"], - ), - offer_url: decodeIfDefined( - headers["taler-offer-url"], - ), - refund_url: decodeIfDefined( - headers["taler-refund-url"], - ), - resource_url: decodeIfDefined( - headers["taler-resource-url"], - ), - session_id: decodeIfDefined( - headers["taler-session-id"], - ), + contract_url: decodeIfDefined(headers["taler-contract-url"]), + offer_url: decodeIfDefined(headers["taler-offer-url"]), + refund_url: decodeIfDefined(headers["taler-refund-url"]), + resource_url: decodeIfDefined(headers["taler-resource-url"]), + session_id: decodeIfDefined(headers["taler-session-id"]), tip: decodeIfDefined(headers["taler-tip"]), }; @@ -700,11 +690,8 @@ function handleBankRequest( amount, bank_url: url, callback_url: new URI(callbackUrl).absoluteTo(url), - sender_wire: - headers["x-taler-sender-wire"] || headers["taler-sender-wire"], - suggested_exchange_url: - headers["x-taler-suggested-exchange"] || - headers["taler-suggested-exchange"], + sender_wire: headers["taler-sender-wire"], + suggested_exchange_url: headers["taler-suggested-exchange"], wt_types: wtTypes, }; const uri = new URI( |