1. Atsushi Odagiri
  2. aodag.httpclient

Commits

ae35  committed c2fbfb8

method を強制的に小文字に

  • Participants
  • Parent commits 9917f35
  • Branches default

Comments (0)

Files changed (1)

File httpclient/aodag/httpclient/__init__.py

View file
  • Ignore whitespace
         self.client = client
         self.element = form_element
         self.action = form_element.attrib.get('action')
-        self.method = form_element.attrib.get('method', 'get')
+        self.method = form_element.attrib.get('method', 'get').lower()
         self.fields = dict(self.get_input_fields(self.element)
                 + self.get_select_fields(self.element)
                 + self.get_radio_field(self.element))