comparison OrthancServer/OrthancRestApi/OrthancRestArchive.cpp @ 1522:f938f7779bcb

fixes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 11 Aug 2015 15:37:42 +0200
parents 8bd0d897763f
children 76ed4cf74bb5
comparison
equal deleted inserted replaced
1521:3606278d305e 1522:f938f7779bcb
294 return; 294 return;
295 } 295 }
296 } 296 }
297 297
298 // Prepare the sending of the ZIP file 298 // Prepare the sending of the ZIP file
299 FilesystemHttpSender sender(tmp.GetPath().c_str()); 299 FilesystemHttpSender sender(tmp.GetPath());
300 sender.SetContentType("application/zip"); 300 sender.SetContentType("application/zip");
301 sender.SetFilename(id + ".zip"); 301 sender.SetContentFilename(id + ".zip");
302 302
303 // Send the ZIP 303 // Send the ZIP
304 call.GetOutput().AnswerStream(sender); 304 call.GetOutput().AnswerStream(sender);
305 305
306 // The temporary file is automatically removed thanks to the RAII 306 // The temporary file is automatically removed thanks to the RAII
355 dicomDir.Encode(s); 355 dicomDir.Encode(s);
356 writer.Write(s); 356 writer.Write(s);
357 } 357 }
358 358
359 // Prepare the sending of the ZIP file 359 // Prepare the sending of the ZIP file
360 FilesystemHttpSender sender(tmp.GetPath().c_str()); 360 FilesystemHttpSender sender(tmp.GetPath());
361 sender.SetContentType("application/zip"); 361 sender.SetContentType("application/zip");
362 sender.SetFilename(id + ".zip"); 362 sender.SetContentFilename(id + ".zip");
363 363
364 // Send the ZIP 364 // Send the ZIP
365 call.GetOutput().AnswerStream(sender); 365 call.GetOutput().AnswerStream(sender);
366 366
367 // The temporary file is automatically removed thanks to the RAII 367 // The temporary file is automatically removed thanks to the RAII