datacipen commited on
Commit
5d04304
1 Parent(s): 444f28d

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -771,7 +771,7 @@ async def creation_liste_entreprises(arrayOfsecteur):
771
  token = await connexion_registre_national_entreprises()
772
  url = f"https://registre-national-entreprises.inpi.fr/api/companies?page=1&pageSize=500&codeCategory={codeSecteurSTR}"
773
  print(url)
774
- headers = {"Authorization": f"Bearer {token}"}
775
  response = requests.get(url, headers=headers)
776
  if response.status_code == 200:
777
  print('OK')
 
771
  token = await connexion_registre_national_entreprises()
772
  url = f"https://registre-national-entreprises.inpi.fr/api/companies?page=1&pageSize=500&codeCategory={codeSecteurSTR}"
773
  print(url)
774
+ headers = {"Authorization": f"Bearer {token}", "Cache-Control": "no-cache"}
775
  response = requests.get(url, headers=headers)
776
  if response.status_code == 200:
777
  print('OK')