mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-27 06:00:21 +01:00
fix(backend): URLをデコードしてからリクエストを送信するように
This commit is contained in:
parent
a21a2c52d7
commit
edc8d70db0
1 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ import Parser from 'rss-parser';
|
|||
import { Injectable } from '@nestjs/common';
|
||||
import { Endpoint } from '@/server/api/endpoint-base.js';
|
||||
import { HttpRequestService } from '@/core/HttpRequestService.js';
|
||||
import { URL } from 'url';
|
||||
|
||||
const rssParser = new Parser();
|
||||
|
||||
|
@ -219,7 +220,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||
private httpRequestService: HttpRequestService,
|
||||
) {
|
||||
super(meta, paramDef, async (ps, me) => {
|
||||
const res = await this.httpRequestService.send(ps.url, {
|
||||
const res = await this.httpRequestService.send(decodeURIComponent(ps.url), {
|
||||
method: 'GET',
|
||||
headers: {
|
||||
Accept: 'application/rss+xml, */*',
|
||||
|
|
Loading…
Reference in a new issue