Skip to content

Commit ee426f9

Browse files
author
Ben Stahl
committed
Update example curl for HEAD response headers
1 parent fca6469 commit ee426f9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Coverage Status](https://coveralls.io/repos/tus/tus-node-server/badge.svg?branch=master&service=github)](https://coveralls.io/github/tus/tus-node-server?branch=master)
55
[![Dependency Status](https://david-dm.org/tus/tus-node-server.svg)](https://david-dm.org/tus/tus-node-server#info=dependencies)
66

7-
tus is a new open protocol for resumable uploads built on HTTP. This is the [tus protocol 1.0.0](http://tus.io/protocols/resumable-upload.html) node.js server implementation.
7+
tus is a new open protocol for resumable uploads built on HTTP. This is the [tus protocol 1.0.0](http://tus.io/protocols/resumable-upload.html) node.js server implementation.
88

99
## Installation
1010

@@ -138,7 +138,9 @@ $ curl -X HEAD -I 'http://localhost:8000/files/88473063b1a06f11e2eced7983d4ab2e'
138138
-H 'Tus-Resumable: 1.0.0'
139139
HTTP/1.1 200 OK
140140
Tus-Resumable: 1.0.0
141-
Upload-length: 400000000
141+
Upload-Offset: 400000000
142+
Upload-Length: 617379340
143+
142144

143145
# Resume the upload with the second partial file
144146
$ 11curl -X PATCH -I 'http://localhost:8000/files/88473063b1a06f11e2eced7983d4ab2e' \
@@ -154,6 +156,7 @@ $ curl -X HEAD -I 'http://localhost:8000/files/88473063b1a06f11e2eced7983d4ab2e'
154156
-H 'Tus-Resumable: 1.0.0'
155157
HTTP/1.1 200 OK
156158
Tus-Resumable: 1.0.0
159+
Upload-Offset: 617379340
157160
Upload-Length: 617379340
158161
```
159162

0 commit comments

Comments
 (0)