bugfix resource's options http method