Skip to content
Myr

Merge pull request #269 from srid/patch-1

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fix typo/grammar in function comment

authored by Manu Mtz.-Almeida · committed by Manu Mtz.-Almeida · parents e2fa897, ffd35c3 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:context.go+1 added-1 removed
118 unmodified lines
119func (c *Context) Abort() {120 c.index = AbortIndex121}122123// Same than AbortWithStatus() but also writes the specified response status code.123// AbortWithStatus is the same as Abort but also writes the specified response status code.124// For example, the first handler checks if the request is authorized. If it's not, context.AbortWithStatus(401) should be called.125func (c *Context) AbortWithStatus(code int) {126 c.Writer.WriteHeader(code)127 c.Abort()
314 unmodified lines