diff --git a/journals/views.py b/journals/views.py index 85150588c5a843b27c6d9b0830ec73a268e145e2..2e8d6167bdb2492b1b8c60fcaba6a51bdcd042e4 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)