@@ -244,7 +244,7 @@ Future<payjoin.ReceiveSession?> retrieve_receiver_proposal(
244244 payjoin.Url ohttp_relay) async {
245245 var agent = http.Client ();
246246 var request = receiver.extractReq (ohttp_relay.asString ());
247- var response = await agent.post (Uri .https (request.request.url.asString ()),
247+ var response = await agent.post (Uri .parse (request.request.url.asString ()),
248248 headers: {"Content-Type" : request.request.contentType});
249249 var res = receiver
250250 .processRes (Uint8List .fromList (utf8.encode (response.body)),
@@ -344,7 +344,7 @@ void main() {
344344 .save (sender_persister);
345345 payjoin.RequestV2PostContext request =
346346 req_ctx.extractV2 (ohttp_relay.asString ());
347- var response = await agent.post (Uri .https (request.request.url.asString ()),
347+ var response = await agent.post (Uri .parse (request.request.url.asString ()),
348348 headers: {"Content-Type" : request.request.contentType},
349349 body: request.request.body);
350350 payjoin.V2GetContext send_ctx = req_ctx
@@ -370,7 +370,7 @@ void main() {
370370 payjoin.RequestResponse request_response =
371371 proposal.extractReq (ohttp_relay.asString ());
372372 var fallback_response = await agent.post (
373- Uri .https (request_response.request.url.asString ()),
373+ Uri .parse (request_response.request.url.asString ()),
374374 headers: {"Content-Type" : request_response.request.contentType},
375375 body: request_response.request.body);
376376 proposal.processRes (
@@ -384,7 +384,7 @@ void main() {
384384 payjoin.RequestOhttpContext ohttp_context_request =
385385 send_ctx.extractReq (ohttp_relay.asString ());
386386 var final_response = await agent.post (
387- Uri .https (ohttp_context_request.request.url.asString ()),
387+ Uri .parse (ohttp_context_request.request.url.asString ()),
388388 headers: {"Content-Type" : ohttp_context_request.request.contentType},
389389 body: ohttp_context_request.request.body);
390390 var checked_payjoin_proposal_psbt = send_ctx
0 commit comments