Skip to content

Commit

Permalink
Rename header from X-TLS-Cipher to X-Tls-Cipher
Browse files Browse the repository at this point in the history
Co-authored-by: kalle (jag) <[email protected]>
  • Loading branch information
jadolg and applejag authored Jul 26, 2024
1 parent 33672a0 commit a150ad7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ func TestInvalidConfig(t *testing.T) {

func TestTLSCipher(t *testing.T) {
cfg := CreateConfig()
cfg.Headers.Cipher = "X-TLS-Cipher"
cfg.Headers.Cipher = "X-Tls-Cipher"
next := http.HandlerFunc(func(_ http.ResponseWriter, r *http.Request) {
assertHeader(t, r.Header, "X-TLS-Cipher", "TLS_AES_128_GCM_SHA256")
assertHeader(t, r.Header, "X-Tls-Cipher", "TLS_AES_128_GCM_SHA256")
})
handler, err := New(context.Background(), next, cfg, "traefik-tls-headers-plugin")
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ middlewares:
plugin:
tlsheaders:
headers:
cipher: X-TLS-Cipher
cipher: X-Tls-Cipher
```
## Supported fields
Expand Down Expand Up @@ -64,7 +64,7 @@ spec:
plugin:
tlsheaders:
headers:
cipher: X-TLS-Cipher
cipher: X-Tls-Cipher
```

</details>
Expand Down
2 changes: 1 addition & 1 deletion testconfig/dynamic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ http:
plugin:
tlsheaders:
headers:
cipher: X-TLS-Cipher
cipher: X-Tls-Cipher

0 comments on commit a150ad7

Please sign in to comment.