> On May 13, 2016, 3:16 p.m., Alexander Rukletsov wrote: > > src/slave/http.cpp, line 855 > > <https://reviews.apache.org/r/47339/diff/1/?file=1382448#file1382448line855> > > > > Do we need the first check given we explicitly requested `tokenize()` > > to split endpoint into two parts?
Size could be 0 or 1 if the input string doesn't look as expected -- exactly what we're testing for here. - Jan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/47339/#review133091 ----------------------------------------------------------- On May 13, 2016, 11:14 a.m., Jan Schlicht wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/47339/ > ----------------------------------------------------------- > > (Updated May 13, 2016, 11:14 a.m.) > > > Review request for mesos and Alexander Rukletsov. > > > Repository: mesos > > > Description > ------- > > Extracting the HTTP endpoint from `URL.path` is now done in a separate > function in `Slave::Http`, making `Slave::Http::extractEndpoint` > consistent with the one in `Master::Http`. > > > Diffs > ----- > > src/slave/http.cpp db60a243c6f099c3a4cfe2503ef4a4c8d57354ce > src/slave/slave.hpp be622d31de29a242a6c71fd8dedb06aeff19142d > > Diff: https://reviews.apache.org/r/47339/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Jan Schlicht > >
