diff --git a/invenio_drafts_resources/resources/records/resource.py b/invenio_drafts_resources/resources/records/resource.py index b74bfdd9..0edb1ab3 100644 --- a/invenio_drafts_resources/resources/records/resource.py +++ b/invenio_drafts_resources/resources/records/resource.py @@ -19,6 +19,7 @@ with_content_negotiation, ) from invenio_records_resources.resources import RecordResource as RecordResourceBase +from invenio_records_resources.resources.records.headers import etag_headers from invenio_records_resources.resources.records.resource import ( request_data, request_extra_args, @@ -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)