Skip to content

Commit 7e8989c

Browse files
authored
Merge pull request #165 from LeslieLeung/bugfix/vercel
2 parents 992dd9d + 8ef9397 commit 7e8989c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

heimdallr/api/push.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import logging
2+
from urllib.parse import unquote_plus
23

34
from fastapi import APIRouter, Form, Query
45
from pydantic import BaseModel, Field
@@ -53,4 +54,6 @@ async def send_push(
5354
msg_type: str = "",
5455
attach: str = Query("", description="base64 string, only support image"),
5556
):
57+
title = unquote_plus(title)
58+
body = unquote_plus(body)
5659
return await serve_channels_async(key, title, body, msg_type=msg_type, attach=attach)

0 commit comments

Comments
 (0)