这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@return42
Copy link
Member

@return42 return42 commented Aug 10, 2025

The HTTP X-Forwarded-Proto (XFP) request header is a de-facto standard header for identifying the protocol (HTTP or HTTPS) that a client used to connect to a proxy or load balancer.[1]

The X-Scheme header was added 10 years ago, why X-Scheme was used back then and not X-Forwarded-Proto, nobody knows today / possibly because X-Forwarded-Proto wasn't a de-facto standard back then.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Proto
[2] searx/searx@6ef7c3276


Related: #5105 (comment)

@return42 return42 requested a review from inetol August 10, 2025 09:51
The HTTP X-Forwarded-Proto (XFP) request header is a *de-facto* standard header
for identifying the protocol (HTTP or HTTPS) that a client used to connect to a
proxy or load balancer.[1]

The ``X-Scheme`` header was added 10 years ago, why ``X-Scheme`` was used back
then and not ``X-Forwarded-Proto``, nobody knows today / possibly because
``X-Forwarded-Proto`` wasn't a *de-facto* standard back then.

[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-Forwarded-Proto
[2] searx/searx@6ef7c3276
@return42 return42 force-pushed the fix-5105#issuecomment-3172447170 branch from 95e9d98 to 71603a6 Compare August 10, 2025 11:01
@return42 return42 merged commit 6cccb46 into searxng:master Aug 10, 2025
7 checks passed
@return42 return42 deleted the fix-5105#issuecomment-3172447170 branch August 10, 2025 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants