I am trying to check if the content type of the resource on my server at s3 has a valid image/jpeg content type. I used the code fromhere but I keep getting the:
Errno::ECONNREFUSED: Connection refused - connect(2) for nil port 80
The link to my s3 image is as:
Is there something I need to change in my code?