Skip to content

Commit 16611e0

Browse files
committed
Bruk på https tilkoblinger.
1 parent c4705e9 commit 16611e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/statbank/get_apidata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def apidata(
7373
# Spør APIet om å få resultatet med requests-biblioteket
7474
with r.Session() as s:
7575
retries = Retry(total=5, backoff_factor=0.1)
76-
s.mount("http://", HTTPAdapter(max_retries=retries))
76+
s.mount("https://", HTTPAdapter(max_retries=retries))
7777
resultat = s.post(url, json=payload_now, timeout=20)
7878

7979
if not resultat.ok:

0 commit comments

Comments
 (0)