aruba / central-python-workflows

Python workflows and examples for HPE Aruba Central
MIT License
45 stars 27 forks source link

Webserver Example not working #17

Open joraco-dev opened 2 years ago

joraco-dev commented 2 years ago

Hi,

https://github.com/aruba/central-examples-only/blob/bb25f7a6b85765078335b1fa2c977573fe7d552f/webhooks/python-webclient/central_webhook_client.py

Is not working properly, as the webserver is not returning control to the requestor.

You must change 71 body = self.rfile.read() to 71 body = self.rfile.read(int(self.headers['Content-Length']))

then works properly