256 } |
256 } |
257 |
257 |
258 int multistatus_send(Multistatus *ms, SYS_NETFD net) { |
258 int multistatus_send(Multistatus *ms, SYS_NETFD net) { |
259 // make sure every resource is closed |
259 // make sure every resource is closed |
260 if(ms->current && !ms->current->resource.isclosed) { |
260 if(ms->current && !ms->current->resource.isclosed) { |
261 msresponse_close((WebdavResource*)ms->current); |
261 if(msresponse_close((WebdavResource*)ms->current)) { |
|
262 return 1; |
|
263 } |
262 } |
264 } |
263 |
265 |
264 // start http response |
266 // start http response |
265 protocol_status(ms->sn, ms->rq, 207, NULL); |
267 protocol_status(ms->sn, ms->rq, 207, NULL); |
266 protocol_start_response(ms->sn, ms->rq); |
268 protocol_start_response(ms->sn, ms->rq); |