Skip to content

Request should cope with empty path #12

Open
@Andersmholmgren

Description

@Andersmholmgren

The following should be supported

new Request('GET', Uri.parse('http://localhost'));

Note also that the check on https://github.com/dart-lang/shelf/blob/master/lib/src/request.dart#L178 is a bit strange. It compares this.url etc but then prints the result of url, but this.url has gone through some processing so this is misleading.

Note: I started trying to do a PR for this but wasn't sure how best to implement it as no path leads naturally to url = '' and handlerPath = '' (or nulls if you prefer). Either way this is not currently allowed in shelf

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions