fastly / fastly-py

A Fastly API client for Python
https://pypi.org/project/fastly/
MIT License
77 stars 59 forks source link

use default context instead of setting specific one #35

Closed pedropregueiro closed 6 years ago

pedropregueiro commented 6 years ago

Fixes #34

I found that using the default context creation tool from ssl actually solved my issue so I decided to open this PR. According to the official python docs, this is what the method does:

Return a new SSLContext object with default settings for the given purpose. The settings are chosen by the ssl module, and usually represent a higher security level than when calling the SSLContext constructor directly.

The tests passed fine on my local branch, but I'm not 100% sure the tests are good enough. Open to suggestions re. better testing of this.