use headers in request.head if passed from urlresolver