Fix issue with curl versions greater than 7.28.1

This should never have been a boolean. Boolean was being converted to integer 1 which was a less secure test.