Liu Shuang
Liu Shuang
```go func (c *Context) HTML(code int, name string, data interface{}) { c.SetHeader("Content-Type", "text/html") c.Status(code) if err := c.engine.htmlTemplates.ExecuteTemplate(c.Writer, name, data); err != nil { c.Fail(500, err.Error()) } } ``` 这里前面c.Status(code)那里调用了response.WriteHeader,导致后面c.Fail再次调用response.WriteHeader无效
> With the token you've provided and the following patch: > > ```diff > diff --git a/chat_stream.go b/chat_stream.go > index 26e964c..0371554 100644 > --- a/chat_stream.go > +++ b/chat_stream.go > @@...
Some constructors for messages are missing in the project, simply because many of them weren't needed for my specific requirements, so I haven't added them yet. 😂
@WillMatthews Take a look at the code review comment above
I understand now, this is my mistake!
Thank you! Please fix the error in actions
I prefer to keep dependencies to a minimum, so perhaps we can add some helper functions to the checks package to optimize the test code.
I don't have a badrock account and welcome anyone who wants to submit a pr
Yes, it's written in the documentation that content can be shortened to a string, and I only support array structures for consistency