kataras / kataras/iris

ctx AbsoluteUri returns URI with the form "https//" or "http//" missing ":"

Open
#1,733 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
25.6k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Example:
When I call ctx.AbsoluteURI("/alexkeycard/pmslinkregister") I get this result: https//alexdev.hmobile.es:8443/alexkeycard/pmslinkregister

I think that the problem is that this line https://github.com/kataras/iris/blob/567c06702fa4359dc4835593a55c55854069954a/context/context.go#L2039
is returning scheme from URL in the form "http" or "https" and the the method uses that value without adding ":".

Contributor guide

Open the contributing guide

Research direction

Start at context/context.go#L2039 and inspect how ctx.AbsoluteURI builds the scheme from the URL. Reproduce the reported call with "/alexkeycard/pmslinkregister" and verify that the returned URI includes the colon in "http://" or "https://".

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.