Bug Fix for ReqPreProcessor plugin
This commit is contained in:
@@ -16,8 +16,12 @@ type Config struct {
|
|||||||
Role string
|
Role string
|
||||||
}
|
}
|
||||||
|
|
||||||
const contextKey = "context"
|
type keyType string
|
||||||
const subscriberIDKey = "subscriber_id"
|
|
||||||
|
const (
|
||||||
|
contextKey keyType = "context"
|
||||||
|
subscriberIDKey keyType = "subscriber_id"
|
||||||
|
)
|
||||||
|
|
||||||
func NewPreProcessor(cfg *Config) (func(http.Handler) http.Handler, error) {
|
func NewPreProcessor(cfg *Config) (func(http.Handler) http.Handler, error) {
|
||||||
if err := validateConfig(cfg); err != nil {
|
if err := validateConfig(cfg); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user