Fixed PUT routine

Signed-off-by: Nathan Bird <nathan@nathanbird.id.au>