Skip to content

Commit 1e4766f

Browse files
committed
END_OF_MENSAGE to END_OF_MESSAGE
END_OF_MENSAGE_WITH_ZERO to END_OF_MESSAGE_WITH_ZERO
1 parent d1cede7 commit 1e4766f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

CPPWebFramework/cwf/constants.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ namespace HTTP
125125
const QByteArray END_LINE = "\r\n";
126126
const QByteArray SEPARATOR = ": ";
127127
const QByteArray HTTP_1_1 = "HTTP/1.1 ";
128-
const QByteArray END_OF_MENSAGE = "\r\n\r\n";
129-
const QByteArray END_OF_MENSAGE_WITH_ZERO = "0\r\n\r\n";
128+
const QByteArray END_OF_MESSAGE = "\r\n\r\n";
129+
const QByteArray END_OF_MESSAGE_WITH_ZERO = "0\r\n\r\n";
130130
const QByteArray CONTENT_TYPE = "Content-Type";
131131
const QByteArray CONTENT_LENGTH = "Content-Length";
132132
const QByteArray CONTENT_DISPOSITION = "Content-Disposition";

CPPWebFramework/cwf/httpparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ CWF_BEGIN_NAMESPACE
1515

1616
bool HttpParser::extractHeaderAndBody(QByteArray &httpMessage)
1717
{
18-
int index = httpMessage.indexOf(HTTP::END_OF_MENSAGE);
18+
int index = httpMessage.indexOf(HTTP::END_OF_MESSAGE);
1919
if(index != -1)
2020
{
2121
index += 4;

CPPWebFramework/cwf/response.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ void Response::flushBuffer()
118118
sendBytes(socket, HTTP::END_LINE, timeOut);
119119
}
120120
}
121-
sendBytes(socket, HTTP::END_OF_MENSAGE_WITH_ZERO, timeOut);
121+
sendBytes(socket, HTTP::END_OF_MESSAGE_WITH_ZERO, timeOut);
122122
}
123123
socket.disconnectFromHost();
124124
content.clear();

0 commit comments

Comments
 (0)