mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
yunopaste: return link to the raw version, less confusing than haste's ui ...
This commit is contained in:
parent
a16fabeb86
commit
f6ffc32719
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ def create_snippet(data):
|
|||
response = requests.post(url, data=data.encode('utf-8'), timeout=TIMEOUT)
|
||||
response.raise_for_status()
|
||||
dockey = json.loads(response.text)['key']
|
||||
return SERVER_URL + "/" + dockey
|
||||
return SERVER_URL + "/raw/" + dockey
|
||||
except requests.exceptions.RequestException as e:
|
||||
print("\033[31mError: {}\033[0m".format(e))
|
||||
sys.exit(1)
|
||||
|
|
Loading…
Add table
Reference in a new issue