Skip to content

Commit

Permalink
DMC-817 Imrove error handling in req_webdav_propfind
Browse files Browse the repository at this point in the history
  • Loading branch information
gbitzes committed Mar 31, 2016
1 parent cb60337 commit 51028bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/fileops/davmeta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,16 @@ struct DirHandle{
return a vector with the content of the request if success
*/
std::vector<char> req_webdav_propfind(HttpRequest* req, DavixError** err){
DavixError* tmp_err=NULL;
int ret =-1;
std::vector<char> res;

req->addHeaderField("Depth","0");
req->setRequestMethod("PROPFIND");

if( (ret = req->executeRequest(&tmp_err)) ==0){
if( (ret = req->executeRequest(err)) ==0){
res.swap(req->getAnswerContentVec());
}

if(ret != 0 || !tmp_err)
DavixError::propagateError(err, tmp_err);

return res;
}

Expand Down

0 comments on commit 51028bb

Please sign in to comment.