falcon

Python Falcon – Post calls are being ignored

Python Falcon – Post calls are being ignored Question: I’m trying to set up a simple reverse proxy with Falcon in Python. I have: import falcon import requests class ReverseProxyResource: def on_get(self, req, resp, text=None): print("GET") if(text): destination = "[destination_url]/" + text else: destination = "[destination_url]" result = requests.get(destination) resp.body = result.text resp.status = result.status_code …

Total answers: 1