Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Wrong URL parsing fc::url #185

Open
Avm07 opened this issue Feb 3, 2021 · 0 comments
Open

[BUG] Wrong URL parsing fc::url #185

Avm07 opened this issue Feb 3, 2021 · 0 comments

Comments

@Avm07
Copy link

Avm07 commented Feb 3, 2021

Seems like bug after providing correct url as std::string fc::url wrong parsing it and trim until path.

auto m_url = fc::url("http://nsqd-nodeos:4151/pub?topic=eos_actions");
ilog("URL string: ${str}", ("str", m_url)); http://nsqd-nodeos:4151/pub - incorrect
ilog("Url path: ${p}", ("p", m_url.path())); /pub - correct
ilog("Url query: ${q}", ("q", m_url.query())); empty - incorrect
ilog("Url args: ${r}", ("r", m_url.args())); empty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant