Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
kreynoldsf5 committed May 2, 2024
1 parent 1f40f1d commit f43d005
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labapp/app/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ def cloudapp_res_headers(session, url, timeout, headers):
response = session.get(url, timeout=timeout)
response.raise_for_status()
data = response.headers
print(data)
for header in headers:
head_value = data.get(header.key(), None)
head_value = data.get(header)
if not head_value:
raise ValueError(f"Header {header} not found request headers.")
return data

0 comments on commit f43d005

Please sign in to comment.