Skip to content

Commit

Permalink
add surrogate key outputs a headers object
Browse files Browse the repository at this point in the history
  • Loading branch information
kyokukou committed May 23, 2024
1 parent 94f5243 commit e74a3dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arxiv/integration/fastly/headers.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from typing import Dict, List
from werkzeug.datastructures import Headers

def add_surrogate_key(headers: Dict[str,str], keys:List[str])-> Dict[str, str]:
def add_surrogate_key(headers: Dict[str,str], keys:List[str])-> Headers:
"""adds surrogate key(s) to a response header,
will update the header dictionary with new keys while retaining the rest of the header information"""
old_keys=f' {headers.get("Surrogate-Key","").strip()} '
Expand Down

0 comments on commit e74a3dd

Please sign in to comment.