labstack / labstack/echo

Support 'Forwarded' header

Open
#2,694 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
32.7k
Forks
2.7k
Avg merge
9h 35m
Merged PRs (30d)
6

Description

Please add support for 'Forwarded' header.

https://github.com/labstack/echo/blob/master/context.go#L275 here the Scheme method should also support Forwarded header ( https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Forwarded ). This header is for example used by Google in their openid oauth2 provider. I've stumbled across this issue in another project and proposed a fix. In a perfect world, said project should simply call Scheme() ( https://github.com/thomiceli/opengist/pull/359 ).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in context.go at the Scheme method mentioned in the issue, then read the linked MDN documentation for the Forwarded header format. Update Scheme to recognize the header alongside its existing behavior, and verify that requests using Forwarded produce the expected scheme.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, web-dev
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.