From 0af5869aa8c8a3add3024a96197b732a95d17406 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Sat, 19 Nov 2016 14:59:59 +0100 Subject: [PATCH] Debug attempt --- journals/views.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/journals/views.py b/journals/views.py index 85150588c..2e8d6167b 100644 --- a/journals/views.py +++ b/journals/views.py @@ -544,11 +544,12 @@ def test_metadata_xml_deposit(request, doi_string): 'login_passwd': settings.CROSSREF_LOGIN_PASSWORD, } #files = {'fname': ('metadata.xml', publication.metadata_xml, 'multipart/form-data', {'Expires': '0'})} - files = {'fname': ('metadata.xml', publication.metadata_xml)} + files = {'file': ('metadata.xml', publication.metadata_xml)} r = requests.post(url, params=params, files=files, - verify=settings.CERTFILE) + #verify=settings.CERTFILE + ) #s = requests.Session() #s.mount('https://', MyAdapter()) #r = s.post(url, params=params, files=files) -- GitLab