From e2dcbdb6a4e2dbd5d1e8955e6e0c6339620fdaa0 Mon Sep 17 00:00:00 2001 From: Tom Kralidis Date: Mon, 24 Apr 2023 11:43:54 -0400 Subject: [PATCH] set headers for .../items POST --- owslib/ogcapi/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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':