[GH-ISSUE #24] bug #18

Closed
opened 2026-03-03 11:55:22 +03:00 by kerem · 4 comments
Owner

Originally created by @secwang on GitHub (Nov 20, 2020).
Original GitHub issue: https://github.com/Finb/bark-server/issues/24

当 content中带%号的时候,会出现400 Bad Request⏎

Originally created by @secwang on GitHub (Nov 20, 2020). Original GitHub issue: https://github.com/Finb/bark-server/issues/24 当 content中带%号的时候,会出现400 Bad Request⏎
kerem closed this issue 2026-03-03 11:55:22 +03:00
Author
Owner

@secwang commented on GitHub (Nov 20, 2020):

GET 请求中,当出现 % , foramt成 %% 时,server不能处理

<!-- gh-comment-id:731211867 --> @secwang commented on GitHub (Nov 20, 2020): GET 请求中,当出现 % , foramt成 %% 时,server不能处理
Author
Owner

@Finb commented on GitHub (Nov 21, 2020):

请求时如果URL中有特殊字符,为了防止特殊字符破坏URL结构,需要对内容URL编码一下

//例如
https://api.day.app/yourkey/%    %
//需要对推送内容进行URL编码
https://api.day.app/yourkey/%25++++%25
<!-- gh-comment-id:731503987 --> @Finb commented on GitHub (Nov 21, 2020): 请求时如果URL中有特殊字符,为了防止特殊字符破坏URL结构,需要对内容URL编码一下 ``` //例如 https://api.day.app/yourkey/% % //需要对推送内容进行URL编码 https://api.day.app/yourkey/%25++++%25 ```
Author
Owner

@secwang commented on GitHub (Nov 21, 2020):

https://api.day.app/token/title/10%

<!-- gh-comment-id:731540421 --> @secwang commented on GitHub (Nov 21, 2020): https://api.day.app/token/title/10%
Author
Owner

@secwang commented on GitHub (Nov 21, 2020):

按%编码成%25 之后应该是没问题的,有些encoding会format成%%的格式,这时候也会出问题。

<!-- gh-comment-id:731543897 --> @secwang commented on GitHub (Nov 21, 2020): 按%编码成%25 之后应该是没问题的,有些encoding会format成%%的格式,这时候也会出问题。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#18
No description provided.