Skip to content

Commit d8ce515

Browse files
committed
Fix for copy operation when the API returns a non-graph API for monitoring results.
1 parent 8b09383 commit d8ce515

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

O365/drive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def copy(self, target=None, name=None):
774774
# Find out if the server has run a Sync or Async operation
775775
location = response.headers.get('Location', None)
776776

777-
if 'monitor' in location:
777+
if response.status_code == 202:
778778
# Async operation
779779
return CopyOperation(parent=self.drive, monitor_url=location)
780780
else:

0 commit comments

Comments
 (0)