facundobatista / kilink

A next generation pastebin
GNU General Public License v3.0
25 stars 30 forks source link

Bad behaviour when empty or wrong text type #139

Closed facundobatista closed 5 years ago

facundobatista commented 5 years ago

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"])
facundobatista commented 5 years ago

Fixed now!