Skip to content

[BUG] appendToPath should add appropriate separators if missing #82

Description

@woelmer
  • Issue Type: BUG
  • Dart SDK version(s): 2.8.1
  • fluri Version(s): 1.2.8

With the following example where the base path does not have a trailing path separator, I would expect appendToPath to add the missing separator between the base and the path being appended.

Fluri base = new Fluri('https://example.com/base');

Fluri fluri = new Fluri.from(base)
  ..appendToPath('path/to/resource')

This results in a path of 'https://example.com/basepath/to/resource'


FYI: @dustinlessard-wf @evanweible-wf @jayudey-wf @maxwellpeterson-wf @sebastianmalysa-wf @trentgrover-wf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions