def http_request(self, request):
        try:
            data = request.get_data()
        except AttributeError:
            data = request.data
        if data is not None and type(data) != str:
            data = urllib.parse.urlencode(data, doseq).encode("utf-8")
            try:
                request.add_data(data)
            except __HOLE__:
                request.data = data
        return request
dataset/ETHPy150Open datadesk/python-documentcloud/documentcloud/MultipartPostHandler.py/PostHandler.http_request