mirror of
https://gitee.com/TarsCloud/TarsCpp.git
synced 2024-12-24 04:16:53 +08:00
Fix: tars2cpp sendResponse use TarsOutputStream
This commit is contained in:
parent
16ab955ca9
commit
22612ae8a4
@ -2542,12 +2542,12 @@ string Tars2Cpp::generateH(const OperationPtr& pPtr, bool bVirtual, const string
|
||||
|
||||
s << writeTo(vParamDecl[i]->getTypeIdPtr()) << endl;
|
||||
}
|
||||
if (_bTrace)
|
||||
{
|
||||
s << TAB << "_rsp_len_ = _os.getLength();" << endl;
|
||||
}
|
||||
|
||||
s << TAB << "_current_->sendResponse(tars::TARSSERVERSUCCESS, _os.getByteBuffer());" << endl;
|
||||
if (_bTrace)
|
||||
{
|
||||
s << TAB << "_rsp_len_ = _os.getLength();" << endl;
|
||||
}
|
||||
s << TAB << "_current_->sendResponse(tars::TARSSERVERSUCCESS, _os);" << endl;
|
||||
|
||||
DEL_TAB;
|
||||
s << TAB << "}" << endl;
|
||||
|
Loading…
Reference in New Issue
Block a user