Skip to content

Commit

Permalink
clean up merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblakeley committed Mar 24, 2021
1 parent ff2f037 commit 8f46633
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apidef/api_definitions.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,6 @@ type VirtualMeta struct {
ProxyOnError bool `bson:"proxy_on_error" json:"proxy_on_error"`
}

type GoPluginMeta struct {
Path string `bson:"path" json:"path"`
Method string `bson:"method" json:"method"`
PluginPath string `bson:"plugin_path" json:"plugin_path"`
SymbolName string `bson:"func_name" json:"func_name"`
}

type MethodTransformMeta struct {
Path string `bson:"path" json:"path"`
Method string `bson:"method" json:"method"`
Expand Down
5 changes: 5 additions & 0 deletions gateway/api_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ type URLSpec struct {
ValidatePathMeta apidef.ValidatePathMeta
Internal apidef.InternalMeta
GoPluginMeta GoPluginMiddleware

IgnoreCase bool
}

Expand Down Expand Up @@ -1245,6 +1246,10 @@ func (a *APISpec) CheckSpecMatchesStatus(r *http.Request, rxPaths []URLSpec, mod
case GoPlugin:
if method == rxPaths[i].GoPluginMeta.Meta.Method {
return true, &rxPaths[i].GoPluginMeta
<<<<<<< HEAD
=======

>>>>>>> 6359edc9... clean up merge conflicts
}
}
}
Expand Down

0 comments on commit 8f46633

Please sign in to comment.