Skip to content
2 changes: 1 addition & 1 deletion pkg/codegen/templates/fiber/fiber-middleware.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (siw *ServerInterfaceWrapper) {{$opid}}(c *fiber.Ctx) error {
{{range .CookieParams}}
var cookie string

if cookie = c.Cookies("{{.ParamName}}"); cookie == "" {
if cookie = c.Cookies("{{.ParamName}}"); cookie != "" {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, nice find.


{{- if .IsPassThrough}}
params.{{.GoName}} = {{if .HasOptionalPointer}}}&{{end}}cookie
Expand Down
Loading