Mercurial > hg > orthanc
comparison Core/HttpServer/BufferHttpSender.h @ 1113:ba5c0908600c
Refactoring of HttpOutput ("Content-Length" header is now always sent)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 02 Sep 2014 15:51:20 +0200 |
parents | e078ea944089 |
children | 6e7e5ed91c2d |
comparison
equal
deleted
inserted
replaced
1112:a119f9ae3640 | 1113:ba5c0908600c |
---|---|
48 | 48 |
49 virtual bool SendData(HttpOutput& output) | 49 virtual bool SendData(HttpOutput& output) |
50 { | 50 { |
51 if (buffer_.size()) | 51 if (buffer_.size()) |
52 { | 52 { |
53 output.SendBodyData(&buffer_[0], buffer_.size()); | 53 output.SendBody(&buffer_[0], buffer_.size()); |
54 } | 54 } |
55 | 55 |
56 return true; | 56 return true; |
57 } | 57 } |
58 | 58 |