fc icon indicating copy to clipboard operation
fc copied to clipboard

[BUG] Wrong URL parsing fc::url

Open Avm07 opened this issue 4 years ago • 0 comments

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

Avm07 avatar Feb 03 '21 18:02 Avm07