WindowsAzure/azure-sdk-for-node — pull request #570 by njpatel (2013-02-05 17:32:40+00:00)
Title: (queueservice.js) Don't add ContentLength if no content was specified.

QueueService::updateMessage should be able to handle a plain visibilitytimeout update without having to change the message as well (as per the docs in the code).

It's setup to do that, apart from it trying to add the content length to the request when the content === null.

I don't think this fix is right, mainly because the CONTENT_TYPE is still being sent, but it does work and thought it could be the right starting point if someone could point me in the right direction for fixing this well enough to be accepted.

Finally, I'd love to write a testcase however there are no docs in how to run the tests and/or the environment needed. If you could point me to some I'll make sure there's a test too.