Skip to content

Commit

Permalink
fix comment placement
Browse files Browse the repository at this point in the history
  • Loading branch information
y-du committed Feb 19, 2024
1 parent 1262cc4 commit 8510291
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handler/nginx_hdl/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,12 @@ func getDirectives(endpoints map[string]endpoint) ([]gonginx.IDirective, error)
return nil, err
}
var locDirectives []gonginx.IDirective
locDirectives = append(locDirectives, newDirective(setDirective, []string{e.GetSetValue()}, []string{cmt}, nil))
locDirectives = append(locDirectives, newDirective(setDirective, []string{e.GetSetValue()}, nil, nil))
if e.Type != lib_model.DefaultGuiEndpoint {
locDirectives = append(locDirectives, newDirective(rewriteDirective, []string{e.GetRewriteValue()}, nil, nil))
}
locDirectives = append(locDirectives, newDirective(proxyPassDirective, []string{e.GetProxyPassValue()}, nil, nil))
directives = append(directives, newDirective(locationDirective, []string{e.GetLocationValue()}, nil, newBlock(locDirectives)))
directives = append(directives, newDirective(locationDirective, []string{e.GetLocationValue()}, []string{cmt}, newBlock(locDirectives)))
}
return directives, nil
}
Expand Down

0 comments on commit 8510291

Please sign in to comment.