How can I handle HEAD request with the odoo controller ?
Currently odoo is able to handle only the POST and GET request methods, but I want to handle the HEAD request method also, so how can I handle with this in odoo controller ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
How can I handle HEAD request with the odoo controller ?
Currently odoo is able to handle only the POST and GET request methods, but I want to handle the HEAD request method also, so how can I handle with this in odoo controller ?
@Samo Arko
When HEAD request came to our odoo server, odoo can't able to found the route and give 404 error
just for info. I've seen that some times HEAD is converted to GET, so have you tried just to log out the content of **kwargs dict?
GET request is normally stored in it.
@http.route()
def my_controller(self, **kwargs):
_logger.debug(u'kwargs: {}'.format(kwargs))
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Controller ignoring args
Solved
|
|
2
Dec 22
|
6476 | |
|
2
May 22
|
2537 | ||
|
1
Sep 21
|
3492 | ||
|
3
Jun 19
|
3030 | ||
|
2
Apr 24
|
4654 |