Closed BuxoyTuxlik closed 6 years ago
I think you should remove it in your code, not adding this exceptional case in library.
@pedrobaeza in fact this case is supported for JSON requests here: https://github.com/OCA/odoorpc/blob/master/odoorpc/rpc/jsonrpclib.py#L86 But it appears that it's not the case for raw HTTP requests. It has to be fixed.
OK, I don't like too much that kind of adjustments that can be done on the other side, but if you think so...
Well, maybe it was a bad design when I wrote this (I don't remember why it was done), but I prefer a coherent behavior among HTTP and JSON requests instead of removing this feature from JSON requests. I'll look in detail.
@sebalix Оk, thanks!
https://github.com/OCA/odoorpc/blob/bfecb7ff3c3df925f94400adc26ecea89dbc3db8/odoorpc/rpc/jsonrpclib.py#L102-L107
add befor line 102:
because if you call the controller in this form:
we get an incorrect URL with an extra "//":