httplib CannotSendRequest error in WSGI

后端 未结 2 966
醉话见心
醉话见心 2020-12-01 18:42

I\'ve used two different python oauth libraries with Django to authenticate with twitter. The setup is on apache with WSGI. When I restart the server everything works grea

2条回答
  •  执念已碎
    2020-12-01 19:02

    Also check your Python version. I had a similar situation after updating to Py-2.7 from Py-2.6. In Py-2.6 everything worked without any problems. Py-2.7 httplib uses HTTP/1.1 by default which made the server did not send back the Connection: close option in the respond, therefore the connection handling was broken. In my case this worked with HTTP/1.0 though.

提交回复
热议问题