mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Changes the line terminator to fixed value: \n
\r is no longer take into consideration
This commit is contained in:
parent
ef35ffa13e
commit
ee8e0f90ef
@ -1475,7 +1475,7 @@ std::string Transaction::toBuf() {
|
||||
a.append(m_uri);
|
||||
a.append(" HTTP/");
|
||||
a.append(m_httpVersion);
|
||||
a.append("\r\n");
|
||||
a.append("\n");
|
||||
std::vector<const collection::Variable *> l;
|
||||
m_variableRequestHeaders.resolve(&l);
|
||||
for (auto h : l) {
|
||||
@ -1483,13 +1483,13 @@ std::string Transaction::toBuf() {
|
||||
a.append((h->m_key->c_str() + pos));
|
||||
a.append(": ");
|
||||
a.append((h->m_value->c_str()));
|
||||
a.append("\r\n");
|
||||
a.append("\n");
|
||||
}
|
||||
|
||||
a.append("\r\n\r\n");
|
||||
a.append("\n\n");
|
||||
if (this->m_requestBody.str().length() > 0) {
|
||||
a.append(this->m_requestBody.str().c_str());
|
||||
a.append("\r\n\r\n");
|
||||
a.append("\n\n");
|
||||
}
|
||||
#if 0
|
||||
l.clear();
|
||||
|
Loading…
x
Reference in New Issue
Block a user