Skip to content

Commit

Permalink
set headers for .../items POST
Browse files Browse the repository at this point in the history
  • Loading branch information
tomkralidis committed Apr 24, 2023
1 parent c06d6ac commit e2dcbdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion owslib/ogcapi/__init__.py
Expand Up @@ -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':
Expand Down

0 comments on commit e2dcbdb

Please sign in to comment.