diff --git a/common/lib/capa/capa/xqueue_interface.py b/common/lib/capa/capa/xqueue_interface.py index be0c3aa7ca7f435e1b2124d2d6f3665a089044e8..40c88b72f88c20a43fa1c6ba741efebbe8ac680a 100644 --- a/common/lib/capa/capa/xqueue_interface.py +++ b/common/lib/capa/capa/xqueue_interface.py @@ -97,11 +97,11 @@ class XQueueInterface(object): def _send_to_queue(self, header, body, files_to_upload): payload = {'xqueue_header': header, 'xqueue_body' : body} - files = None + files = {} for f in files_to_upload: files.update({ f.name: f }) - return self._http_post(self.url+'/xqueue/submit/', payload, files) + return self._http_post(self.url+'/xqueue/submit/', payload, files=files) def _http_post(self, url, data, files=None):