Skip to content

Failed to load proto files from external domains #1821

@ridomin

Description

@ridomin

protobuf.js version: 7.1.2

When loading proto files from external domains, the URL gets normalized with protobufjs/path missing one slash

 root = await protobuf.load("https://mydomain/path/file.proto")

I've observed this call

if (resolved = self.resolvePath("", filename[i]))

translates the URL into https:/mydomain/path/file.proto

I've submitted this PR to do not normalize http[s] paths
#1820

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