Permalink
Browse files

Added support for the HTTPS protocol in URLs.

  • Loading branch information...
1 parent e09f983 commit 7c4daffb2bff92094211b0860cab57144e66c8aa @davej committed Dec 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 tinchy.py
View
@@ -16,7 +16,7 @@ def index():
@post('/')
def make_tinchy_url():
fatty_url = request.POST.get('url', '')
- if fatty_url[:7] == "http://":
+ if fatty_url[:7] == "http://" or fatty_url[:8] == "https://":
storage = shelve.open("tinchy")
tinchy_id = generate_tinchy_id()
while tinchy_id in storage:

0 comments on commit 7c4daff

Please sign in to comment.