Skip to content

HttpUrl#addPathSegment does not encode square brackets '[', '] #6790

@miloszivkovic

Description

@miloszivkovic

Was wondering if there are any plans on adding square brackets in list of characters that should be escaped in path segment. RFC3986 says these are allowed only in host part of the URL and I recently had web server returning 400 because "[" in path segment was not escaped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug in existing code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions