From 94bedf0488e083923df8d5568b936a926bd2fff2 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 13 Mar 2017 23:31:05 +0100 Subject: [PATCH] Use GET request for longURL() --- httptools/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httptools/__init__.py b/httptools/__init__.py index e0a4da9..50dbfa7 100644 --- a/httptools/__init__.py +++ b/httptools/__init__.py @@ -1,7 +1,7 @@ import setuptools, pyshorteners, requests def longURL(url): - return requests.head(url, allow_redirects=True).url + return requests.get(url, allow_redirects=True).url def shortURL(url): try: