Lines 168-178
Link Here
|
168 |
// |
168 |
// |
169 |
// Some servers send '\n' instead of '\r\n' that the RFCs say they should be sending. |
169 |
// Some servers send '\n' instead of '\r\n' that the RFCs say they should be sending. |
170 |
|
170 |
|
171 |
if (length > 1 && raw[length-2] == '\n') { |
171 |
if (length > 1 && raw.at(length-2) == '\n') { |
172 |
raw[length-2] = '\0'; |
172 |
raw.at(length-2) = '\0'; |
173 |
} |
173 |
} |
174 |
if (length > 2 && raw[length-3] == '\r') { |
174 |
if (length > 2 && raw.at(length-3) == '\r') { |
175 |
raw[length-3] = '\0'; |
175 |
raw.at(length-3) = '\0'; |
176 |
} |
176 |
} |
177 |
|
177 |
|
178 |
kdDebug(14121) << "<< " << raw << endl; |
178 |
kdDebug(14121) << "<< " << raw << endl; |