mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
44ea182c2b
commit
7a43916d6c
@ -204,6 +204,8 @@ class FetchBackend(QNetworkAccessManager):
|
|||||||
reply = self.put(rq, data)
|
reply = self.put(rq, data)
|
||||||
elif method == 'head':
|
elif method == 'head':
|
||||||
reply = self.head(rq, data)
|
reply = self.head(rq, data)
|
||||||
|
elif method == 'delete':
|
||||||
|
reply = self.deleteRequest(rq)
|
||||||
else:
|
else:
|
||||||
raise TypeError(f'Unknown HTTP request type: {method}')
|
raise TypeError(f'Unknown HTTP request type: {method}')
|
||||||
dr = DownloadRequest(req['url'], os.path.join(self.output_dir, filename), reply, timeout, req['id'], self)
|
dr = DownloadRequest(req['url'], os.path.join(self.output_dir, filename), reply, timeout, req['id'], self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user