> On Jan. 17, 2014, 11:52 p.m., Charlie Carson wrote: > > 3rdparty/libprocess/include/process/http.hpp, line 503 > > <https://reviews.apache.org/r/17076/diff/1/?file=429763#file429763line503> > > > > this is probably a API consistency question and I'm the new guy - but > > to me, a post w/o either a body or a contentType is incorrect. The entire > > purpose of a POST is to upload a body and you need to know the content type > > to know what to do with the body when it arrives.
ContentType is not mandatory as far as I know. The server can infer the ContentType. http://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html#sec7.2.1 One can choose to POST an empty request (no body). In that case, ContentType is not needed. - Jie ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/17076/#review32226 ----------------------------------------------------------- On Jan. 17, 2014, 11:41 p.m., Jie Yu wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/17076/ > ----------------------------------------------------------- > > (Updated Jan. 17, 2014, 11:41 p.m.) > > > Review request for mesos, Benjamin Hindman and Charlie Carson. > > > Repository: mesos-git > > > Description > ------- > > See summary. > > > Diffs > ----- > > 3rdparty/libprocess/include/process/http.hpp a8b1636 > 3rdparty/libprocess/src/process.cpp 936f118 > > Diff: https://reviews.apache.org/r/17076/diff/ > > > Testing > ------- > > will include test fixes in the following patches. > > > Thanks, > > Jie Yu > >
