This question has been flagged

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 ? 

Avatar
Discard
Author Best Answer

@Samo Arko

When HEAD request came to our odoo server, odoo can't able to found the route and give 404 error

Avatar
Discard
Best Answer

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))



Avatar
Discard