+
Skip to content

Url parse incorrect logic #203

Open
Open
@HO-COOH

Description

@HO-COOH

See here

If we construct a url with

    minio::s3::BaseUrl base_url{ "https://1.2.3.4" };

Then the std::getline call will return the entire string "1.2.3.4" then std::stoi("1.2.3.4") returns 1 as port, which is obviously wrong. It should simply NOT parse the port if : is not found in the url, and let user specify.

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

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载