Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sends Transfer-Encoding header twice #2190

Closed
RichardLitt opened this issue Jan 12, 2016 · 5 comments
Closed

add sends Transfer-Encoding header twice #2190

RichardLitt opened this issue Jan 12, 2016 · 5 comments

Comments

@RichardLitt
Copy link
Member

What

Transfer-chunked should only be sent once.

Example

$ curl -F "file=test" -i http://localhost:5001/api/v0/add
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Access-Control-Allow-Headers: X-Stream-Ouptut, X-Chunked-Output
Access-Control-Expose-Headers: X-Stream-Ouptut, X-Chunked-Output
Content-Type: application/json
Trailer: X-Stream-Error
Transfer-Encoding: chunked
X-Chunked-Output: 1
Date: Tue, 12 Jan 2016 15:55:41 GMT
Transfer-Encoding: chunked

Made apparent during ipfs-inactive/http-api-spec#17

@dignifiedquire
Copy link
Member

Also why is there a Continue in there Oo

@ghost
Copy link

ghost commented Jan 12, 2016

curl sends Expect: continue for form/file uploads, so that the server can reject the request before any data has been sent. Useful in case of buffering proxies in between -- you don't want to upload a couple MB on a small DSL line just to be told "nope" afterwards.

@RichardLitt
Copy link
Member Author

That is good to know! Thanks!

@RichardLitt RichardLitt changed the title add sends Transfer-chunked header twice add sends Transfer-Encoding header twice Jan 12, 2016
@ghost
Copy link

ghost commented Jan 12, 2016

The duplicated transfer-encoding is still obviously wrong :)

@Kubuxu
Copy link
Member

Kubuxu commented May 31, 2016

Resolved in: #2465

@Kubuxu Kubuxu closed this as completed May 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants