Skip to content

Commit

Permalink
add response header check back
Browse files Browse the repository at this point in the history
  • Loading branch information
yang-ruoxi committed Aug 9, 2024
1 parent 5a472b1 commit c2c0796
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/maggma/api/resource/read_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,12 @@ def search(**queries: dict[str, STORE_PARAMS]) -> Union[dict, Response]:
if self.disable_validation:
response = Response(orjson.dumps(response, default=serialization_helper)) # type: ignore

if self.header_processor is not None:
if self.disable_validation:
self.header_processor.process_header(response, request)
else:
self.header_processor.process_header(temp_response, request)

return response

self.router.get(
Expand Down

0 comments on commit c2c0796

Please sign in to comment.