fix HTTP PUT with data

Addresses https://github.com/haxenme/nme/issues/150.