stream id can be configured explicitly

This commit is contained in:
badaix 2016-02-06 20:48:05 +01:00
parent 35e4cdb05d
commit 1b2163942d

View file

@ -87,7 +87,13 @@ ReaderUri::ReaderUri(const std::string& uri)
{
pos = kv.find('=');
if (pos != string::npos)
query[kv.substr(0, pos)] = kv.substr(pos+1);
{
string key = trim_copy(kv.substr(0, pos));
string value = trim_copy(kv.substr(pos+1));
query[key] = value;
if (key == "id")
id_ = value;
}
}
}