Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for ignoring Protocol Options in CShoutcastFile::Open.
(something like UserAgent, Referer, etc.)
- Loading branch information
b6e5b50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if url2.GetProtocolOptions() is empty, is it a problem if the protocol options start with "&"? it doesn't create a link like
http://xxx?&noshout=...
does it?b6e5b50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better be safe than sorry I'd say: an extra url2.GetProtocolOptions() ? ... is fairly simple to implement...
b6e5b50
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I allready tested it. if the m_strProtocolOptions is empty, then it just starts with "&". But it doesnt matter, because your url is allready splitted away in another string, and then you have "CUtil::Tokenize(options, array, "&");" in CurlFile.cpp.
It just splits this options string, there is no problem whether you have "&" as your first symbol or not.