Skip to content

Support POST requests without data in web.py

Dean Jackson requested to merge jkaving:post-without-data into develop

Created by: jkaving

The urllib2 documentation explicitly states that the HTTP request will be a POST instead of a GET when the data parameter is provided.

If the method parameter specifies POST we now force urllib2 to use the correct method by setting the data parameter to an empty string.

Merge request reports