Skip to content

Matching ignores the host #4

@rpgoldman

Description

@rpgoldman

I have a library that needs to pull the same path from 2 different hosts. I couldn't get this to work, and that's because urllib3-mock ignores the host property of the url. It should be able to add a host property to the set of urls and, if that property is not None, check it.

It's not great that the terminology used here is "URL" but what is meant is "that part of the URL that follows the host spec."

Maybe add a check to the url and raise an error if the user provides a value with a : in it, where presence of the colon is diagnostic of a full URL, instead of just a path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions