Skip to content

Commit 3646e85

Browse files
authored
add headers to HTTP DELETE operations (#1017)
1 parent b731470 commit 3646e85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

owslib/ogcapi/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def _request(self, method: str = 'GET', path: str = None,
187187
elif method == 'PUT':
188188
response = http_put(url, headers=self.headers, data=data, auth=self.auth)
189189
elif method == 'DELETE':
190-
response = http_delete(url, auth=self.auth)
190+
response = http_delete(url, headers=headers, auth=self.auth)
191191

192192
LOGGER.debug(f'URL: {response.url}')
193193
LOGGER.debug(f'Response status code: {response.status_code}')

0 commit comments

Comments
 (0)