Skip to content

Url containing a path results in 404 on all requests #20

@ondravondra

Description

@ondravondra

The library correctly sets HttpClient BaseAddress property, however BuildEndpointUrl returns a path starting with slash. .NET HttpClient then treats the endpoint url as an absolute path resulting in the path segment of the BaseAddress property to be ignored. Related SO answer: https://stackoverflow.com/a/23438417

The BuildEndpointUrl should return a string without a leading slash.

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