Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit 94a18ce

Browse files
committed
Same thing with add_data
1 parent 9fba6f2 commit 94a18ce

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

documentcloud/MultipartPostHandler.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,10 @@ def http_request(self, request):
9797
)
9898
)
9999
request.add_unredirected_header('Content-Type', contenttype)
100-
request.add_data(data)
100+
try:
101+
request.add_data(data)
102+
except AttributeError:
103+
request.data.update(data)
101104

102105
return request
103106

0 commit comments

Comments
 (0)