Skip to content

Commit

Permalink
fixup! [fetch] Add new metadata tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed Aug 9, 2021
1 parent 0557a14 commit b764a77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ def main(request, response):
"""
headers = [
(b'Content-Type', b'text/html'),
(b'Refresh', b'0; URL={}'.format(request.GET.first(b'location')))
(b'Refresh', b'0; URL=' + request.GET.first(b'location'))
]
return (200, headers, b'')
5 changes: 4 additions & 1 deletion fetch/metadata/resources/header-link.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ def main(request, response):
"""
headers = [
(b'Content-Type', b'text/html'),
(b'Link', b'<{}>; rel={}'.format(request.GET.first(b'location'), request.GET.first(b'rel')))
(
b'Link',
b'<' + request.GET.first(b'location') + b'>; rel=' + request.GET.first(b'rel')
)
]
return (200, headers, b'')

0 comments on commit b764a77

Please sign in to comment.