The current method relies on httplib2 doing HEAD request and following any redirects that follow on any url that looks shortened.
This method will however freeze if the destination url is a streaming URL and there is a 302 http response causing the HEAD request to be changed into a GET request.
Probably only expand urls from known services only or find a clean way to prevent the GET request...
The current method relies on httplib2 doing HEAD request and following any redirects that follow on any url that looks shortened. This method will however freeze if the destination url is a streaming URL and there is a 302 http response causing the HEAD request to be changed into a GET request.
Probably only expand urls from known services only or find a clean way to prevent the GET request...