-
Notifications
You must be signed in to change notification settings - Fork 28
Added possibilty to switch ssl verification off #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dwintergruen you seem to be reverting e17d8f9 which is a fix for IQSS/dataverse#3326 . Is this intentional?
dataverse/file.py
Outdated
name = json['datafile']['name'] | ||
file_id = json['datafile']['id'] | ||
name = json['datafile']['name'] | ||
file_id = json['datafile']['id'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dwintergruen you seem to be reverting e17d8f9 which is a fix for IQSS/dataverse#3326 . Is this intentional?
No I haven’t realized this change.
|
@dwintergruen ok, can you please update your pull request? Thanks!! |
Just adding a +1 for fixing this issue. I'm having problems with exactly this. |
@@ -311,19 +319,19 @@ def upload_file(self, filename, content, zip_files=True): | |||
} | |||
|
|||
requests.post( | |||
self.edit_media_uri, | |||
self.edit_media_uri.replace("https","http"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. With this "replace" is the fix actually to switch from https to http? This reminds me of IQSS/dataverse#5656 where we recently starting allowing http (not recommended) instead of https for password resets. We hope that this non-https configuration is only used for a test server!
Helps testing on self-signed servers.