mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 14:15:46 +03:00
cosmetics: Fix compilation warnings to please QA
This commit is contained in:
committed by
Felipe Zimmerle
parent
7f31746ca2
commit
e0f39b3211
@@ -1325,14 +1325,13 @@ int Transaction::appendResponseBody(const unsigned char *buf, size_t len) {
|
||||
* contents of the response body, otherwise there is no need to call this
|
||||
* method.
|
||||
*
|
||||
* WARN: This is a skeleton that it is not in use yet.
|
||||
*
|
||||
* @return It returns a buffer (const char *)
|
||||
* @retval >0 body was update and available.
|
||||
* @retval NULL Nothing was updated.
|
||||
*
|
||||
*/
|
||||
const char *Transaction::getResponseBody() const {
|
||||
// int there_is_update = this->rules->loadResponseBodyFromJS(this);
|
||||
return this->m_responseBody.str().c_str();
|
||||
return strdup(this->m_responseBody.str().c_str());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user