mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
fix(pusher): Only strip notification_push_path as a URL suffix
This commit is contained in:
1 parent
805d4d9416
commit
24e289113b
4 files changed
+11
-20
No files matched your search
@@ -304,11 +304,13 @@ impl Service {
|
||||
+ Debug
|
||||
+ Send,
|
||||
{
|
||||
let dest = dest.replace(self.services.globals.notification_push_path(), "");
|
||||
let dest = dest
|
||||
.strip_suffix(self.services.globals.notification_push_path())
|
||||
.unwrap_or(dest);
|
||||
trace!("Push gateway destination: {dest}");
|
||||
|
||||
let http_request = request
|
||||
.try_into_http_request::<BytesMut>(&dest, (), ())
|
||||
.try_into_http_request::<BytesMut>(dest, (), ())
|
||||
.map_err(|e| {
|
||||
err!(BadServerResponse(warn!(
|
||||
"Failed to find destination {dest} for push gateway: {e}"
|
||||
|
||||
Reference in new issue
Block a user