Skip to content

Commit 6bfd173

Browse files
committed
fixing delete method in client. removing headers = application.json
1 parent aa426b7 commit 6bfd173

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## Unreleased
8+
9+
Fix bug with delete. [#38](https://github.com/clowder-framework/pyclowder/issues/38)
10+
711
## 2.7.0 - 2023-02-14
812

913
When extractors download a file from clowder it will ask clowder to not track that download.

pyclowder/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def delete(self, path, params=None, headers=None):
168168
auth = None
169169
while True:
170170
try:
171-
response = requests.delete(url, headers=headers, params=params,
171+
response = requests.delete(url, params=params,
172172
auth=auth, timeout=self.timeout, verify=self.ssl)
173173
response.raise_for_status()
174174
return response.json()

0 commit comments

Comments
 (0)