Fix a bug where only POST could be used