Skip to content

Url parse incorrect logic #203

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

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