Commits

pjenvey  committed a87afce

[svn] made form tag's method matching case insensitive

  • Participants
  • Parent commits cc16856

Comments (0)

Files changed (2)

File tests/test_form_tag.py

             form(url="http://www.example.com"),
             '<form action="http://www.example.com" method="post">'
         )
+        self.assertEqual(
+            form(url="http://www.example.com", method='GET'),
+            '<form action="http://www.example.com" method="GET">'
+        )
 
     def test_form_multipart(self):
         self.assertEqual(

File webhelpers/rails/form_tag.py

     
     method_tag = ""
     
-    if method in ['post', 'get']:
+    if method.lower() in ['post', 'get']:
         options['method'] = method
     else:
         options['method'] = "post"