[GH-ISSUE #4407] http header的key转为了小写 #3481

Closed
opened 2026-05-05 14:14:16 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @liqu828612 on GitHub (Aug 28, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4407

Bug Description

接收http请求后,其中header中key为X-ClientId 转为了小写X-Clientid。

frpc Version

0.58

frps Version

0.58

System Architecture

linux/amd64,

Configurations

proxies
name = "gate-dev"
type = "http"
localIP = "127.0.0.1"
localPort = 9080
customDomains = ["gate.dev.***.com"]

Logs

(orgCode=10000001, acsOrderId=10000002, pageNotify=false, requestHeaders={Accept=text/plain, application/xml, text/xml, application/json, application/+xml, application/+json, /, User-Agent=Apache-HttpClient/4.5.12 (Java/1.8.0_312), X-Forwarded-Proto=http, X-Forwarded-Host=gate.dev..com, Host=gate.dev..com, Accept-Encoding=gzip,deflate, X-Forwarded-Port=9080, X-B3-SpanId=2eee74dc1cf54190, X-Signature=ec3cdd8ac10ef4b2b644ac66bb6dab25, X-Forwarded-For=47.243.38.46, 127.0.0.1, X-B3-TraceId=2eee74dc1cf541908fec665c8a5805ae, Content-Length=583, X-Real-IP=127.0.0.1, X-Clientid=CECN005217, Content-Type=application/json}, requestNameValues=null, requestQueryString=null, requestBody={"data":{"additionalInfo":{"collectionAcct":{"accountNumber":"622500000122","bic":"BKTRUS33XXX","clearingSysNumber":"021001033","clearingSysType":"USABA","currency":"USD","iban":""},"debtorInfo":{"accountNumber":"IT23W3609201**********","bic":"SXPYDKKK","name":"ALKEMIA S.R.L.","remittanceInfo":"/ROC/SCTOUTxjTWiSLVRJsFf6cbqbqkGh1ST ADVANCE INVOICE NUMBER 281"}},"amount":2230200,"currency":"USD","pendingAmt":2230200,"transactionId":20240828001544,"transactionTime":"2024-08-28T16:32:08+0800"},"eventId":"3edb0f06-7d8b-4cf5-b55d-606626b7582e","eventName":"received"})

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @liqu828612 on GitHub (Aug 28, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4407 ### Bug Description 接收http请求后,其中header中key为X-ClientId 转为了小写X-Clientid。 ### frpc Version 0.58 ### frps Version 0.58 ### System Architecture linux/amd64, ### Configurations [[proxies]] name = "gate-dev" type = "http" localIP = "127.0.0.1" localPort = 9080 customDomains = ["gate.dev.***.com"] ### Logs (orgCode=10000001, acsOrderId=10000002, pageNotify=false, requestHeaders={Accept=text/plain, application/xml, text/xml, application/json, application/*+xml, application/*+json, */*, User-Agent=Apache-HttpClient/4.5.12 (Java/1.8.0_312), X-Forwarded-Proto=http, X-Forwarded-Host=gate.dev.*.com, Host=gate.dev.*.com, Accept-Encoding=gzip,deflate, X-Forwarded-Port=9080, X-B3-SpanId=2eee74dc1cf54190, X-Signature=ec3cdd8ac10ef4b2b644ac66bb6dab25, X-Forwarded-For=47.243.38.46, 127.0.0.1, X-B3-TraceId=2eee74dc1cf541908fec665c8a5805ae, Content-Length=583, X-Real-IP=127.0.0.1, X-Clientid=CECN005217, Content-Type=application/json}, requestNameValues=null, requestQueryString=null, requestBody={"data":{"additionalInfo":{"collectionAcct":{"accountNumber":"622500000122","bic":"BKTRUS33XXX","clearingSysNumber":"021001033","clearingSysType":"USABA","currency":"USD","iban":""},"debtorInfo":{"accountNumber":"IT23W3609201**********","bic":"SXPYDKKK","name":"ALKEMIA S.R.L.","remittanceInfo":"/ROC/SCTOUTxjTWiSLVRJsFf6cbqbqkGh1ST ADVANCE INVOICE NUMBER 281"}},"amount":2230200,"currency":"USD","pendingAmt":2230200,"transactionId":20240828001544,"transactionTime":"2024-08-28T16:32:08+0800"},"eventId":"3edb0f06-7d8b-4cf5-b55d-606626b7582e","eventName":"received"}) ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@liqu828612 commented on GitHub (Aug 28, 2024):

关闭

<!-- gh-comment-id:2315641002 --> @liqu828612 commented on GitHub (Aug 28, 2024): 关闭
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#3481
No description provided.