Mercurial > hg > orthanc
comparison Core/HttpServer/MongooseServer.cpp @ 345:795ce0fa8e8a
fix
author | jodogne |
---|---|
date | Wed, 23 Jan 2013 10:21:59 +0100 |
parents | 3a3b3ba8c1e0 |
children | 753e69f9326e |
comparison
equal
deleted
inserted
replaced
344:cd6749e53a03 | 345:795ce0fa8e8a |
---|---|
375 { | 375 { |
376 if (last != FindIterator()) | 376 if (last != FindIterator()) |
377 { | 377 { |
378 Range part(&last->back(), &it->front()); | 378 Range part(&last->back(), &it->front()); |
379 Range content = boost::find_first(part, "\r\n\r\n"); | 379 Range content = boost::find_first(part, "\r\n\r\n"); |
380 if (content != Range()) | 380 if (/*content != Range()*/!content.empty()) |
381 { | 381 { |
382 Range c(&content.back() + 1, &it->front() - 2); | 382 Range c(&content.back() + 1, &it->front() - 2); |
383 size_t chunkSize = c.size(); | 383 size_t chunkSize = c.size(); |
384 | 384 |
385 if (chunkSize > 0) | 385 if (chunkSize > 0) |