Comments (2)
HTTP header 按规范是不区分大小写的。什么场景下需要强制约定大小写呢?
from higress.
http header不区分大小写时符合RFC规范的,所以envoy默认转换成小写了,跟HTTP2保持一致。
如果要绕过此问题,可以开启istio api支持,然后下发这个envoyfilter:
apiVersion: networking.istio.io/v1alpha3
kind: EnvoyFilter
metadata:
name: header-preserve-case
namespace: higress-system
spec:
configPatches:
- applyTo: NETWORK_FILTER
match:
context: GATEWAY
listener:
filterChain:
filter:
name: envoy.filters.network.http_connection_manager
patch:
operation: MERGE
value:
name: envoy.filters.network.http_connection_manager
typed_config:
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
http_protocol_options:
header_key_format:
stateful_formatter:
name: preserve_case
typed_config:
'@type': type.googleapis.com/envoy.extensions.http.header_formatters.preserve_case.v3.PreserveCaseFormatterConfig
- applyTo: CLUSTER
match:
context: GATEWAY
patch:
operation: MERGE
value:
typed_extension_protocol_options:
envoy.extensions.upstreams.http.v3.HttpProtocolOptions:
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions
explicit_http_config:
http_protocol_options:
header_key_format:
stateful_formatter:
name: preserve_case
typed_config:
'@type': type.googleapis.com/envoy.extensions.http.header_formatters.preserve_case.v3.PreserveCaseFormatterConfig
from higress.
Related Issues (20)
- 使用higress.io/auth-tls-secret配置客户端证书未生效 HOT 5
- 从请求的url参数里读取key-value并将这个value值作为目的地址进行转发
- 使用 Higress + LobeChat 快速搭建私人GPT助理(支持 RAG、联网) HOT 42
- macos 13.6下kind部署使用wasm插件后envoy奔溃 HOT 5
- 弃用较老的 TLS 版本 HOT 1
- Higress Wasm 插件中 redis-cli 支持 Scan HOT 6
- Higress WasmPlugin CRD 不支持自签名证书的HTTPS的镜像仓库 HOT 2
- higress1.3.3不兼容ingress迁移过来的路由规则 HOT 2
- higress 域名配置如何支持非80、443端口 HOT 1
- 【开源之夏】实现基于向量相似度实现LLM结果召回的WASM插件
- 【GLCC】AI 缓存 Wasm 插件对接更多向量数据库/向量存储、搜索组件
- 【GLCC】Higress Console 支持 Gateway API HOT 2
- 【GLCC】Higress Console 支持通过表单配置 Wasm 插件
- 是否有计划支持service-weight注解 HOT 3
- support aws eks HOT 6
- 支持通过 GitHub Actions 来构建和发布 Wasm 插件镜像 HOT 5
- ai-statistics 统计获取模型失败[bug & 求助] HOT 5
- WASM插件开发框架proxy-wasm-go-sdk的单元测试框架适配
- http2dubbo 入参支持Integer类型 HOT 5
- Can `AutomaticHttps`+`CredentialConfig` set secret at other namespace? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from higress.