Skip to content

Commit

Permalink
Fix for 204 no content response and XML report
Browse files Browse the repository at this point in the history
  • Loading branch information
andresriancho committed Nov 12, 2019
1 parent e1b6f5f commit 0744286
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions w3af/core/controllers/plugins/auth_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
from w3af.core.controllers.plugins.plugin import Plugin
from w3af.core.data.kb.info import Info
from w3af.core.data.fuzzer.utils import rand_alnum
from w3af.core.data.url.helpers import is_no_content_response


class AuthPlugin(Plugin):
Expand Down Expand Up @@ -74,7 +75,11 @@ def has_active_session(self):
raise NotImplementedError('Plugin is not implementing required method isLogged')

def _log_http_response(self, http_response):
if is_no_content_response(http_response):
return False

self._http_response_ids.append(http_response.id)
return True

def _clear_log(self):
self._http_response_ids = []
Expand Down

0 comments on commit 0744286

Please sign in to comment.