Skip to content
This repository

One byte upload not supported #14

Closed
bigplum opened this Issue · 4 comments

5 participants

Simon P Gaertig xrfang Vojta Drbohlav Valery Kholodkov
Simon
# curl localhost:8081/upload/ -d a -H "Content-Type: text/xml" -H "Content-Disposition: attachment; filename=big.TXT" -H "X-Content-Range: bytes 1-1/111414930" -H "Session-ID: 1111215057" -v
* About to connect() to localhost port 8081 (#0)
*   Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8081 (#0)
> POST /upload/ HTTP/1.1
> User-Agent: curl/7.21.3 (i686-pc-linux-gnu) libcurl/7.21.3 zlib/1.2.3
> Host: localhost:8081
> Accept: */*
> Content-Type: text/xml
> Content-Disposition: attachment; filename=big.TXT
> X-Content-Range: bytes 1-1/111414930
> Session-ID: 1111215057
> Content-Length: 1
>
* Empty reply from server
* Connection #0 to host localhost left intact
curl: (52) Empty reply from server
* Closing connection #0

Is this a bug?

P Gaertig

Will the problem occur with range "1023-1024/1025"?

xrfang
xrfang commented

Problem happens with 0-0/1 or 2-2/3, anyway, the 2 numbers before "/" cannot be same. I think this is definitely a bug.

Vojta Drbohlav

Issue can be closed, now. I forgot to mention it in commit message.

Valery Kholodkov
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.