From 6caa5bff489f3315e6973a3ac3bc374c377c00f2 Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Mon, 5 Jun 2017 20:31:45 +0200 Subject: [PATCH] Fixed curl docs. Closes #92 --- docs/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.rst b/docs/api.rst index c1ccb65..ecc9105 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -123,6 +123,6 @@ A sample Python 2 script to publish snippets:: You can simply use curl to publish a whole file:: - $ alias dpaste="curl -F 'content=<-' https://dpaste.de/api/?format=url" + $ alias dpaste="curl -F 'format=url' -F 'content=<-' https://dpaste.de/api/" $ cat foo.txt | dpaste https://dpaste.de/ke2pB