Skip to content

recipe/simplehttpserver: fix application/x-www-form-urlencoded POST on py3

Jérome Perrin requested to merge fix/simplehttpserver-urlencoded-post into master

In deploy test, this recipe is used with url encoded POST 1, but the test only tested multipart encoded POSTs. In python 3, they are different, with multipart POSTs, FieldStorage values are bytes, but with url encoded POSTs, the values are string.

This small server from the recipe only supported multipart POSTs, this change add support for url encoded POSTs.

Merge request reports