File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff 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" ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ CWF_BEGIN_NAMESPACE
1515
1616bool 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 ;
Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments