Ensure the correct HTTP command is used for index.create

As per issue #37.