8000 http, refactor: fix compile warning in debug mode. · fibjs/fibjs@5c75fba · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 5c75fba

Browse files
committed
http, refactor: fix compile warning in debug mode.
1 parent 5983e7d commit 5c75fba

File tree

4 files changed

+4
-4
lines changed
< 8000 div class="prc-PageLayout-VerticalDivider-4A4Qm prc-PageLayout-PaneVerticalDivider-1c9vy" data-variant="none" data-position="start" style="--spacing:var(--spacing-none)">

4 files changed

+4
-4
lines changed

fibjs/include/HttpMessage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class HttpMessage : public Message {
6363
result_t clear();
6464

6565
public:
66-
result_t sendTo(Stream_base* stm, exlib::string& strCommand,
66+
result_t send(Stream_base* stm, exlib::string& strCommand,
6767
AsyncEvent* ac);
6868
result_t sendHeader(Stream_base* stm, exlib::string& strCommand,
6969
AsyncEvent* ac);

fibjs/src/http/HttpMessage.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ result_t HttpMessage::pack(v8::Local<v8::Value>& retVal)
167167
return Message::pack(retVal);
168168
}
169169

170-
result_t HttpMessage::sendTo(Stream_base* stm, exlib::string& strCommand,
170+
result_t HttpMessage::send(Stream_base* stm, exlib::string& strCommand,
171171
AsyncEvent* ac)
172172
{
173173
if (ac->isSync())

fibjs/src/http/HttpRequest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ result_t HttpRequest::sendTo(Stream_base* stm, AsyncEvent* ac)
274274
strCommand.append(1, ' ');
275275
strCommand.append(strProtocol);
276276

277-
return m_message->sendTo(stm, strCommand, ac);
277+
return m_message->send(stm, strCommand, ac);
278278
}
279279

280280
result_t HttpRequest::readFrom(Stream_base* stm, AsyncEvent* ac)

fibjs/src/http/HttpResponse.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ result_t HttpResponse::sendTo(Stream_base* stm, AsyncEvent* ac)
354354
get_protocol(strCommand);
355355
strCommand.append(statusMessage);
356356

357-
return m_message->sendTo(stm, strCommand, ac);
357+
return m_message->send(stm, strCommand, ac);
358358
}
359359

360360
result_t HttpResponse::readFrom(Stream_base* stm, AsyncEvent* ac)

0 commit comments

Comments
 (0)
0