HHoflittlefish777 commented on code in PR #27752:
URL: https://github.com/apache/doris/pull/27752#discussion_r1408901722


##########
be/src/http/action/stream_load.cpp:
##########
@@ -301,6 +301,14 @@ Status StreamLoadAction::_on_header(HttpRequest* http_req, 
std::shared_ptr<Strea
         }
     }
 
+    if (ctx->body_bytes == 0 && !ctx->is_chunked_transfer) {

Review Comment:
   Ctx->body_bytes == 0 must be zero in on_header method, for it hasn't started 
receive data here yet, which begins in StreamLoadAction::_handle. I think you 
can check in  _handle or use 
http_req->header(HttpHeaders::CONTENT_LENGTH).empty() to check.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to