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