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):
661
661
// Using the Go SDK we recommend using higher-order functions to define middleware
662
662
func validate (next apis .Handler ) apis .Handler {
663
663
return func (ctx *apis.Ctx ) error {
664
- if ctx.Request .Headers ()[" content-type" ] ! = nil {
664
+ if ctx.Request .Headers ()[" content-type" ] = = nil {
665
665
ctx.Response .Status = 400
666
666
ctx.Response .Body = []byte (" header Content-Type is required" )
667
667
@@ -721,7 +721,7 @@ import (
721
721
722
722
func validate (next apis .Handler ) apis .Handler {
723
723
return func (ctx *apis.Ctx ) error {
724
- if ctx.Request .Headers ()[" content-type" ] ! = nil {
724
+ if ctx.Request .Headers ()[" content-type" ] = = nil {
725
725
ctx.Response .Status = 400
726
726
ctx.Response .Body = []byte (" header Content-Type is required" )
727
727
@@ -795,7 +795,7 @@ import (
795
795
796
796
func validate (next apis .Handler ) apis .Handler {
797
797
return func (ctx *apis.Ctx ) error {
798
- if ctx.Request .Headers ()[" content-type" ] ! = nil {
798
+ if ctx.Request .Headers ()[" content-type" ] = = nil {
799
799
ctx.Response .Status = 400
800
800
ctx.Response .Body = []byte (" header Content-Type is required" )
801
801
You can’t perform that action at this time.
0 commit comments