stdlib icon indicating copy to clipboard operation
stdlib copied to clipboard

Correct implementation of uri.origin and add tests for default ports

Open nijolas opened this issue 1 year ago • 3 comments
trafficstars

uri.origin should not include a trailing slash - I've corrected the relevant tests and updated the function to concat its own results, as this behaviour appears specific to the origin function only, not to_string.

Additionally, I've added two tests to cover the default port stripping when http or https are supplied along wtih port 80 or 443 respectively.

Fixes https://github.com/gleam-lang/stdlib/issues/623.

nijolas avatar Jun 14 '24 07:06 nijolas