remove deprecated headers

This commit is contained in:
Florian Dold 2019-08-26 00:29:02 +02:00
parent 4e6d0a8ba0
commit c367669d3b
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -550,21 +550,11 @@ function handleHttpPayment(
url ? decodeURIComponent(url) : undefined; url ? decodeURIComponent(url) : undefined;
const fields = { const fields = {
contract_url: decodeIfDefined( contract_url: decodeIfDefined(headers["taler-contract-url"]),
headers["taler-contract-url"], offer_url: decodeIfDefined(headers["taler-offer-url"]),
), refund_url: decodeIfDefined(headers["taler-refund-url"]),
offer_url: decodeIfDefined( resource_url: decodeIfDefined(headers["taler-resource-url"]),
headers["taler-offer-url"], session_id: decodeIfDefined(headers["taler-session-id"]),
),
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"]), tip: decodeIfDefined(headers["taler-tip"]),
}; };
@ -700,11 +690,8 @@ function handleBankRequest(
amount, amount,
bank_url: url, bank_url: url,
callback_url: new URI(callbackUrl).absoluteTo(url), callback_url: new URI(callbackUrl).absoluteTo(url),
sender_wire: sender_wire: headers["taler-sender-wire"],
headers["x-taler-sender-wire"] || headers["taler-sender-wire"], suggested_exchange_url: headers["taler-suggested-exchange"],
suggested_exchange_url:
headers["x-taler-suggested-exchange"] ||
headers["taler-suggested-exchange"],
wt_types: wtTypes, wt_types: wtTypes,
}; };
const uri = new URI( const uri = new URI(