fc
fc copied to clipboard
[BUG] Wrong URL parsing fc::url
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