Skip to content

Commit

Permalink
added allowSelfSignedSSL bool prop for CachedImage and CachedImagePro…
Browse files Browse the repository at this point in the history
…vider to allow image download from Self-Signed SSL Server
  • Loading branch information
kfiroo committed Aug 5, 2017
1 parent 4e2b831 commit 096d479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ImageCacheManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const defaultDefaultOptions = {
headers: {},
ttl: 60 * 60 * 24 * 14, // 2 weeks
useQueryParamsInCacheKey: false,
cacheLocation: fsUtils.getCacheDir()
cacheLocation: fsUtils.getCacheDir(),
allowSelfSignedSSL: false,
};

module.exports = (defaultOptions = defaultDefaultOptions, urlCache = MemoryCache) => {
Expand Down
1 change: 1 addition & 0 deletions ImageCacheManagerOptionsPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ module.exports = {
PropTypes.arrayOf(PropTypes.string)
]),
cacheLocation: PropTypes.string,
allowSelfSignedSSL: PropTypes.bool
};

0 comments on commit 096d479

Please sign in to comment.