This repository was archived by the owner on May 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ async def validate(ctx, nxt: HttpMiddleware):
661661// Using the Go SDK we recommend using higher-order functions to define middleware
662662func validate (next apis .Handler ) apis .Handler {
663663 return func (ctx *apis.Ctx ) error {
664- if ctx.Request .Headers ()[" content-type" ] ! = nil {
664+ if ctx.Request .Headers ()[" content-type" ] = = nil {
665665 ctx.Response .Status = 400
666666 ctx.Response .Body = []byte (" header Content-Type is required" )
667667
@@ -721,7 +721,7 @@ import (
721721
722722func validate (next apis .Handler ) apis .Handler {
723723 return func (ctx *apis.Ctx ) error {
724- if ctx.Request .Headers ()[" content-type" ] ! = nil {
724+ if ctx.Request .Headers ()[" content-type" ] = = nil {
725725 ctx.Response .Status = 400
726726 ctx.Response .Body = []byte (" header Content-Type is required" )
727727
@@ -795,7 +795,7 @@ import (
795795
796796func validate (next apis .Handler ) apis .Handler {
797797 return func (ctx *apis.Ctx ) error {
798- if ctx.Request .Headers ()[" content-type" ] ! = nil {
798+ if ctx.Request .Headers ()[" content-type" ] = = nil {
799799 ctx.Response .Status = 400
800800 ctx.Response .Body = []byte (" header Content-Type is required" )
801801
You can’t perform that action at this time.
0 commit comments