Skip to content

Commit d348f9a

Browse files
committed
fix refs
1 parent 71de632 commit d348f9a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

owslib/ogcapi/features.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def collection_items(self, collection_id: str, **kwargs: dict) -> dict:
7272
kwargs2 = deepcopy(kwargs)
7373
cql = kwargs2.pop('cql')
7474
path = f'collections/{collection_id}/items?{urlencode(kwargs2)}'
75-
return self._request(method='POST', path=path, data=cql, auth=self.auth)
75+
return self._request(method='POST', path=path, data=cql, kwargs=kwargs2)
7676
else:
7777
path = f'collections/{collection_id}/items'
7878
return self._request(path=path, kwargs=kwargs)

owslib/util.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,12 +480,12 @@ def http_prepare(*args, **kwargs):
480480

481481

482482
def http_get(*args, **kwargs):
483-
rkwargs = http_prepare(kwargs)
483+
rkwargs = http_prepare(*args, **kwargs)
484484
return requests.get(*args, **rkwargs)
485485

486486

487487
def http_put(*args, **kwargs):
488-
rkwargs = http_prepare(kwargs)
488+
rkwargs = http_prepare(*args, **kwargs)
489489

490490
if 'data' in kwargs:
491491
if isinstance(kwargs['data'], dict):
@@ -497,7 +497,7 @@ def http_put(*args, **kwargs):
497497

498498

499499
def http_delete(*args, **kwargs):
500-
rkwargs = http_prepare(kwargs)
500+
rkwargs = http_prepare(*args, **kwargs)
501501
return requests.delete(*args, **rkwargs)
502502

503503

0 commit comments

Comments
 (0)