From 331905b8a943e702be745cf3ccd96454996ba79f Mon Sep 17 00:00:00 2001 From: Arc <33088785+arcbtc@users.noreply.github.com> Date: Wed, 12 Feb 2020 13:42:09 +0000 Subject: [PATCH] Update views_api.py --- lnbits/extensions/withdraw/views_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnbits/extensions/withdraw/views_api.py b/lnbits/extensions/withdraw/views_api.py index 303b91742..82d171ffb 100644 --- a/lnbits/extensions/withdraw/views_api.py +++ b/lnbits/extensions/withdraw/views_api.py @@ -30,7 +30,7 @@ def api_lnurlencode(urlstr, parstr): url = url_for("withdraw.api_lnurlfetch", _external=True, urlstr=urlstr, parstr=parstr, rand=rand) - return jsonify({"status": "TRUE", "lnurl": lnurl_encode(url.replace("http:", "https:"))}), 200 + return jsonify({"status": "TRUE", "lnurl": lnurl_encode(url.replace("http://", "https://"))}), 200 @withdraw_ext.route("/api/v1/lnurlfetch///", methods=["GET"]) @@ -49,7 +49,7 @@ def api_lnurlfetch(parstr, urlstr, rand): withdraw_ext_db.execute("UPDATE withdraws SET withdrawals = ? WHERE uni = ?", (k1str, parstr,)) res = LnurlWithdrawResponse( - callback=url_for("withdraw.api_lnurlwithdraw", _external=True, rand=rand).replace("http:", "https:"), + callback=url_for("withdraw.api_lnurlwithdraw", _external=True, rand=rand).replace("http://", "https://"), k1=k1str, min_withdrawable=user_fau[0][8] * 1000, max_withdrawable=user_fau[0][7] * 1000,