WindowsAzure/azure-sdk-for-node — pull request #685 by njpatel (2013-03-27 08:53:24+00:00)
Title: (queueservice.js) Don't add ContentLength if no content was specified.

(re-opening against dev as requested)

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.