commit
3d3d23f6f2
2 changed files with 5 additions and 3 deletions
|
|
@ -118,7 +118,7 @@ SEE ALSO
|
|||
Sources <https://bitbucket.org/victorykit/httpaste>
|
||||
|
||||
Host (HTTP) <http://httpaste.it>
|
||||
(Onion) <http://http://paste77ubkwxy4fqezffsmthxdh3xerwi72tlsw2mch7ecjhw2xn7iyd.onion>
|
||||
(Onion) <http://paste77ubkwxy4fqezffsmthxdh3xerwi72tlsw2mch7ecjhw2xn7iyd.onion>
|
||||
|
||||
NOTES
|
||||
|
||||
|
|
|
|||
|
|
@ -100,11 +100,13 @@ def get(**kwargs):
|
|||
else:
|
||||
paste_model.remove(pid, backend.paste)
|
||||
|
||||
if encoding is not None:
|
||||
data = data.decode(encoding)
|
||||
|
||||
if syntax is not None:
|
||||
data = highlight(data, str(syntax), formatter, linenos)
|
||||
|
||||
if encoding is not None:
|
||||
data = data.decode(encoding)
|
||||
|
||||
|
||||
return ConnexionResponse(
|
||||
status_code=200,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue