jimmywarting / wemo-client

JavaScript client library for controlling and subscribing to Wemo Devices
MIT License
132 stars 40 forks source link

Add support for supplying content length in requests #71

Open szakharchenko opened 3 years ago

szakharchenko commented 3 years ago

This enables support for servers which do not support use of chunked transfer encoding in requests, e.g. emulated devices.

szakharchenko commented 3 years ago

See also https://github.com/timonreinhard/wemo-client/issues/63.

jimmywarting commented 2 years ago

Hmm, I think ideally we should set content-length header whenever the size is known... shouldn't need a option for this...