From e5dc7cfe0c4e9bb36909517971e1233c09ed77bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sun, 10 May 2020 19:57:44 +0200 Subject: [PATCH] readme improvements --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7fea6dc..64aa004 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ $ curl -X POST --data-binary @RICKROLL.txt 0.0.0.0:7745 -i -H 'Content-Type: app ### Expiration time -To customize the expiration time, use the header `X-Expire: `, or a GET argument `?expire=` e.g. +To customize the expiration time, use the header `X-Expire: `, or a URL parameter `?expire=` e.g. ``` $ curl -X POST --data-binary @RICKROLL.txt 0.0.0.0:7745 -i -H 'X-Expire: 60' @@ -65,12 +65,12 @@ Send the token as the `X-Secret` header, or GET argument `?secret=....` File is updated by sending a `PUT` request to the file's URL. -The `PUT` request can change file expiration (`X-Expire: ` or GET arg `expire`), -update its `Content-Type`, or replace its content. +The `PUT` request can change file expiration (`X-Expire: ` or a URL parameter `?expire=`), +update its `Content-Type` (by sending the header), or replace its content. Note that sending `PUT` with empty body will *not* clear the file, in that case the file content is -not changed at all. This can be used to extend file's expiration without changing it in any other way -(by sending the `X-Expire` header). +not changed at all. This can be used to extend a file's expiration without changing it in any other way +(by sending the `X-Expire` header). ## Deleting a file