headerencodingfix

package module
v0.0.0-...-1b7f5ff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

Header Encoding Fix

Header Encoding Fix is a middleware plugin for Traefik fix encoding on request header values. Golang doesn't enforce the use of properly encoded header values (see https://github.com/golang/go/issues/49627). This can result in a service(for example when it's based on the popular Java framework Spring Boot) to not accept the request.

Configuration

Static
pilot:
  token: "xxxxx"

experimental:
  plugins:
    headerencodingfix:
      moduleName: "github.com/nilskohrs/headerencodingfix"
      version: "v0.0.1"
Dynamic
http:
  middlewares:
    headerencodingfix-foo:
      headerencodingfix: ~

Documentation

Overview

Package headerencodingfix is a plugin

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, next http.Handler, config *Config, name string) (http.Handler, error)

New creates a new headerEncodingFix plugin.

Types

type Config

type Config struct{}

Config the plugin configuration.

func CreateConfig

func CreateConfig() *Config

CreateConfig creates the default plugin configuration.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL