Jan 的回应
开发者回应
发布于 7 年前Hi, thanks for taking the time to dig into this issue. Unfortunately it is by design and there is no way to fix it (that I know of).
RESTer is a browser extension and the browser provides two ways of sending HTTP requests:
1. XMLHttpRequest: This ignores any specified body and sets it to null when the method is GET or HEAD.
2. fetch: This throws a TypeError when you specifiy a body and the method is GET or HEAD.
Browsers have good reason to do so. While, according to the HTTP/1.1 spec, you are allowed to send a request body with a GET or HEAD request, the server is advised to ignore the body when handling the request. See here for a good explanation:
https://stackoverflow.com/a/983458/1798215
That said, if you have ideas on how to handle this better, please let me know. I am definitely open to suggestions. Post them on GitHub or send me an email:
https://github.com/frigus02/RESTer/issues
RESTer is a browser extension and the browser provides two ways of sending HTTP requests:
1. XMLHttpRequest: This ignores any specified body and sets it to null when the method is GET or HEAD.
2. fetch: This throws a TypeError when you specifiy a body and the method is GET or HEAD.
Browsers have good reason to do so. While, according to the HTTP/1.1 spec, you are allowed to send a request body with a GET or HEAD request, the server is advised to ignore the body when handling the request. See here for a good explanation:
https://stackoverflow.com/a/983458/1798215
That said, if you have ideas on how to handle this better, please let me know. I am definitely open to suggestions. Post them on GitHub or send me an email:
https://github.com/frigus02/RESTer/issues
104 条评价
- 评分 5 / 5来自 Firefox 用户 17436936, 4 个月前
- 评分 5 / 5来自 msajadi832, 9 个月前
- 评分 5 / 5来自 Firefox 用户 15313516, 10 个月前
- 评分 5 / 5来自 Firefox 用户 18253713, 1 年前
- 评分 5 / 5来自 Firefox 用户 18115635, 1 年前
- 评分 5 / 5来自 Miguel Conde, 2 年前
- 评分 5 / 5来自 Firefox 用户 12924248, 2 年前
- 评分 5 / 5来自 harl windwolf, 3 年前Excellent add-on functionality, does exactly what I expected. Also, excellent description concerning its permissions, which provides the transparency that I'd wish to see with every add-on. Danke!
- 评分 5 / 5来自 felipecontrerass, 3 年前
- 评分 5 / 5来自 Firefox 用户 14678933, 3 年前
- 评分 4 / 5来自 Firefox 用户 17505828, 3 年前I cannot install the add-on in Firefox (v103, Win 10 64bit).
I am installing from add-ons in firefox but it says "Installation aborted because the add-on is corrupted" and "This add-on is not actively monitored for security by Mozilla. Make sure you trust it before installing it."
while it is strange that on win8 32bit installed without a problem (?)开发者回应
发布于 3 年前Sorry for the late reply. I can't reproduce the issue, either. My best guess is that the file may got corrupted during download. Do you see the same issue after restarting Firefox? - 评分 5 / 5来自 Firefox 用户 17444643, 3 年前
- 评分 5 / 5来自 Mahdi Magroun, 3 年前
- 评分 5 / 5来自 Firefox 用户 13329218, 4 年前
- 评分 5 / 5来自 Oleg Kyiashko, 4 年前