diff --git a/owslib/ogcapi/__init__.py b/owslib/ogcapi/__init__.py index d64eab79..74a1c250 100644 --- a/owslib/ogcapi/__init__.py +++ b/owslib/ogcapi/__init__.py @@ -174,7 +174,8 @@ def _request(self, method: str = 'GET', path: str = None, response = http_get(url, headers=self.headers, auth=self.auth, params=kwargs) elif method == 'POST': - response = http_post(url, request=data, auth=self.auth) + response = http_post(url, headers=self.headers, request=data, + auth=self.auth) elif method == 'PUT': response = http_put(url, data=data, auth=self.auth) elif method == 'DELETE':