Here is the Go code which fails for http://ubuntuone.com/p/c9Y/, but succeeds for https://upload.wikimedia.org/wikipedia/commons/8/8c/K2%2C_Mount_Godwin_Austen%2C_Chogori%2C_Savage_Mountain.jpg :
http://play.golang.org/p/YBTHYFmCZF
The snippet of code cannot be executed by the Go sandbox (it won't allow to request URL), but it is a test case for whoever wants to try it locally.
Here is the Go code which fails for http:// ubuntuone. com/p/c9Y/, but succeeds for https:/ /upload. wikimedia. org/wikipedia/ commons/ 8/8c/K2% 2C_Mount_ Godwin_ Austen% 2C_Chogori% 2C_Savage_ Mountain. jpg :
http:// play.golang. org/p/YBTHYFmCZ F
The snippet of code cannot be executed by the Go sandbox (it won't allow to request URL), but it is a test case for whoever wants to try it locally.