'This method is a little bit more complex than I initially expected,
since it needs to handle cases where the HTML form was created with
a set of attributes that don\'t make sense together. For example take
a look at this:
<form action="" method="get" enctype="multipart/form-data">
<input type="text" name="test" value="ÑÐµÑÑ">
<input type="submit" name="submit">
</form>
Chrome and Firefox will send this as a GET request with a query string
containing both the text and submit params in url-encoded form. This
means that they override the "user defined" multipart.
Situations like this triggered bugs:
https://github.com/andresriancho/w3af/issues/11997
https://github.com/andresriancho/w3af/issues/11998
So I had to change the method to be a little bit smarter and override
the form encoding in specific cases.
:param form_encoding: The user-defined string in the HTML which
specifies the form encoding to use.
:return:'

def set_form_encoding(self, form_encoding):

    if (('multipart/' in form_encoding.lower()) and (self.get_method() == 'GET')):
        form_encoding = DEFAULT_FORM_ENCODING
    self._form_encoding = form_encoding
