Skip to content

Commit

Permalink
Merge pull request #280 from arXiv/fix-header-typing
Browse files Browse the repository at this point in the history
add surrogate key outputs a headers object
  • Loading branch information
kyokukou committed May 23, 2024
2 parents f555170 + e74a3dd commit 5926b21
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 5926b21

Please sign in to comment.