We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b4a4b03 + df9c5b8 commit e54e51fCopy full SHA for e54e51f
payjoin/src/send/mod.rs
@@ -411,12 +411,12 @@ impl V2GetContext {
411
ohttp_relay: Url,
412
) -> Result<(Request, ohttp::ClientResponse), CreateRequestError> {
413
use crate::uri::UrlExt;
414
- let mut url = self.endpoint.clone();
+ let base_url = self.endpoint.clone();
415
416
// TODO unify with receiver's fn subdir_path_from_pubkey
417
let hash = sha256::Hash::hash(&self.hpke_ctx.reply_pair.public_key().to_compressed_bytes());
418
let subdir: ShortId = hash.into();
419
- url.set_path(&subdir.to_string());
+ let url = base_url.join(&subdir.to_string()).map_err(InternalCreateRequestError::Url)?;
420
let body = encrypt_message_a(
421
Vec::new(),
422
&self.hpke_ctx.reply_pair.public_key().clone(),
0 commit comments