Fixed logic error for multi-part requests.