mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
fix #168.
This commit is contained in:
parent
84a826815d
commit
6b256c8b82
@ -41,7 +41,7 @@ func (s *httpServer) Run(addr, authToken string, bot *coolq.CQBot) {
|
|||||||
c.Status(404)
|
c.Status(404)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if c.Request.Method == "POST" && c.Request.Header.Get("Content-Type") == "application/json" {
|
if c.Request.Method == "POST" && strings.Contains(c.Request.Header.Get("Content-Type"), "application/json") {
|
||||||
d, err := c.GetRawData()
|
d, err := c.GetRawData()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Warnf("获取请求 %v 的Body时出现错误: %v", c.Request.RequestURI, err)
|
log.Warnf("获取请求 %v 的Body时出现错误: %v", c.Request.RequestURI, err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user