diff --git a/invenio_drafts_resources/resources/records/resource.py b/invenio_drafts_resources/resources/records/resource.py index b74bfdd9..a702fbfb 100644 --- a/invenio_drafts_resources/resources/records/resource.py +++ b/invenio_drafts_resources/resources/records/resource.py @@ -27,6 +27,7 @@ request_search_args, request_view_args, ) +from invenio_records_resources.resources.records.headers import etag_headers from invenio_records_resources.resources.records.utils import search_preference from .errors import RedirectException @@ -164,7 +165,9 @@ def publish(self): @request_view_args @with_content_negotiation( - response_handlers={"application/json": ResponseHandler(JSONSerializer())}, + response_handlers={ + "application/json": ResponseHandler(JSONSerializer(), headers=etag_headers) + }, default_accept_mimetype="application/json", ) @response_handler(many=True)