facundobatista/kilink

Bad behaviour when empty or wrong text type

facundobatista opened this issue · 1 comments

It doesn't generate a linkode! Example:

import requests


url = "http://linkode.org/api/1/linkodes/"

response = requests.post(url, data={
    "text_type": "",
    "content": "some random content",
})

print(response.headers["location"])

Fixed now!