Skip to content

Allow http:// when guessing URL pattern #717

@eksperimental

Description

@eksperimental

I coudln't figure out what was wrong with a test, and it was because source_ref was set to "http://github.com/elixir-lang/ex_doc/" and not "https://..."
https://github.com/elixir-lang/ex_doc/blob/8269ca8/lib/ex_doc.ex#L145-L159

GitHub, GitLab and BitBucket will redirect you to https if you try to fetch a project via "http://"

My proposal is to accept http:// and return the guessed address with http://

WDYGT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions