Skip to content

Invalid host header string doesn't throw ArgumentException #504

@neochrome

Description

@neochrome

When adding a host header with empty value to a RestRequest, no exception is thrown. However, when executing the request, the response gets status code 0, ResponseStatus "error" and get and attached ErrorException of type ArgumentException. Still no exception is thrown and the request fails "silently".

I think a better approach would be to throw the ArgumentException immediately when the faulty host header value is set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions