mirror of
https://github.com/hzrd149/nsite-gateway.git
synced 2025-06-23 20:05:03 +00:00
small fixes
This commit is contained in:
parent
fb3541259c
commit
048696f155
@ -110,7 +110,7 @@ app.use(async (ctx, next) => {
|
|||||||
|
|
||||||
// fetch blossom servers if not in cache
|
// fetch blossom servers if not in cache
|
||||||
if (!servers) {
|
if (!servers) {
|
||||||
console.log(`${pubkey}: Searching for blossom servers`);
|
console.log(`${pubkey}: Fetching blossom servers`);
|
||||||
servers = await getUserBlossomServers(pubkey, relays);
|
servers = await getUserBlossomServers(pubkey, relays);
|
||||||
|
|
||||||
if (servers) {
|
if (servers) {
|
||||||
@ -137,6 +137,7 @@ app.use(async (ctx, next) => {
|
|||||||
// pass headers along
|
// pass headers along
|
||||||
if (res.headers["content-length"]) ctx.set("content-length", res.headers["content-length"]);
|
if (res.headers["content-length"]) ctx.set("content-length", res.headers["content-length"]);
|
||||||
|
|
||||||
|
ctx.status = 200;
|
||||||
ctx.body = res;
|
ctx.body = res;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user