Skip to content

Commit

Permalink
Version bumped to 1.1.0:
Browse files Browse the repository at this point in the history
  * PoolManager changed to HTTPSConnectionPool
  * SSL validation disabled(cert_reqs='CERT_NONE',assert_hostname=False)
  • Loading branch information
theriverman committed Oct 24, 2019
1 parent bc1c522 commit 6df8d7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_minio_backend/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def is_minio_available(self) -> MinioServerStatus:
mss.add_message('MINIO_ENDPOINT is not configured in Django settings')
return mss

http = urllib3.PoolManager()
c = urllib3.HTTPSConnectionPool(self.MINIO_ENDPOINT, cert_reqs='CERT_NONE', assert_hostname=False)
try:
r = http.request('GET', f'{self.MINIO_ENDPOINT}/minio/index.html', timeout=10.0)
r = c.request('GET', '/minio/index.html')
return MinioServerStatus(r)
except urllib3.exceptions.MaxRetryError:
mss = MinioServerStatus(None)
Expand Down

0 comments on commit 6df8d7c

Please sign in to comment.