Mercurial > hg > orthanc
diff Core/HttpServer/HttpServer.cpp @ 3404:e280ced38a4c
ErrorCode_UnsupportedMediaType
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 07 Jun 2019 18:43:42 +0200 |
parents | 0ce9b4f5fdf5 |
children | b9cba6a91780 |
line wrap: on
line diff
--- a/Core/HttpServer/HttpServer.cpp Fri Jun 07 17:24:26 2019 +0200 +++ b/Core/HttpServer/HttpServer.cpp Fri Jun 07 18:43:42 2019 +0200 @@ -393,7 +393,6 @@ if (contentLength != headers.end()) { // "Content-Length" is available - std::string body; PostDataStatus status = ReadBodyWithContentLength(body, connection, contentLength->second); @@ -407,7 +406,7 @@ } else { - // No Content-Length. Stream the HTTP connection. + // No Content-Length: This is a chunked transfer. Stream the HTTP connection. std::string tmp(1024 * 1024, 0); for (;;)