Skip to content
Browse files

Updates get_response_code function

  • Loading branch information...
1 parent 1beb084 commit bf81bb74cab26c343152d829ca1d834cf9dd8ba0 @casschin casschin committed Jan 28, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 pages/page.py
View
2 pages/page.py
@@ -102,7 +102,7 @@ def get_response_code(self, url):
# return the response status
requests_config = {'max_retries': 5}
try:
- r = requests.head(url, verify=False, allow_redirects=True, config=requests_config, timeout=self.timeout)
+ r = requests.get(url, verify=False, allow_redirects=True, config=requests_config, timeout=self.timeout)
return r.status_code
except Timeout:
return 408

0 comments on commit bf81bb7

Please sign in to comment.
Something went wrong with that request. Please try again.