|
15 | 15 | MAPILLARY_GRAPH_API_ENDPOINT = os.getenv(
|
16 | 16 | "MAPILLARY_GRAPH_API_ENDPOINT", "https://graph.mapillary.com"
|
17 | 17 | )
|
18 |
| -# https://requests.readthedocs.io/en/latest/user/advanced/#ssl-cert-verification |
19 |
| -MAPILLARY__DISABLE_VERIFYING_SSL = ( |
20 |
| - os.getenv("MAPILLARY__DISABLE_VERIFYING_SSL") == "TRUE" |
21 |
| -) |
22 | 18 | DEFAULT_CHUNK_SIZE = 1024 * 1024 * 16 # 16MB
|
23 | 19 | # According to the docs, UPLOAD_REQUESTS_TIMEOUT can be a tuple of
|
24 | 20 | # (connection_timeout, read_timeout): https://requests.readthedocs.io/en/latest/user/advanced/#timeouts
|
@@ -101,7 +97,6 @@ def fetch_offset(self) -> int:
|
101 | 97 | url,
|
102 | 98 | headers=headers,
|
103 | 99 | timeout=REQUESTS_TIMEOUT,
|
104 |
| - verify=not MAPILLARY__DISABLE_VERIFYING_SSL, |
105 | 100 | )
|
106 | 101 | LOG.debug("HTTP response %s: %s", resp.status_code, resp.content)
|
107 | 102 | resp.raise_for_status()
|
@@ -144,7 +139,6 @@ def upload(
|
144 | 139 | headers=headers,
|
145 | 140 | data=chunk,
|
146 | 141 | timeout=UPLOAD_REQUESTS_TIMEOUT,
|
147 |
| - verify=not MAPILLARY__DISABLE_VERIFYING_SSL, |
148 | 142 | )
|
149 | 143 | LOG.debug(
|
150 | 144 | "HTTP response %s: %s", resp.status_code, _truncate_end(resp.content)
|
@@ -191,7 +185,6 @@ def finish(self, file_handle: str) -> str:
|
191 | 185 | headers=headers,
|
192 | 186 | json=data,
|
193 | 187 | timeout=REQUESTS_TIMEOUT,
|
194 |
| - verify=not MAPILLARY__DISABLE_VERIFYING_SSL, |
195 | 188 | )
|
196 | 189 | LOG.debug("HTTP response %s: %s", resp.status_code, _truncate_end(resp.content))
|
197 | 190 |
|
|
0 commit comments