Skip to content

ipfs object get --encoding=protobufHTTP response returns wrong content type #2469

Closed
@RichardLitt

Description

@RichardLitt
$ curl -i -X POST "http://localhost:5001/api/v0/object/get?arg=QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ&encoding=protobuf"
HTTP/1.1 200 OK
Access-Control-Allow-Headers: X-Stream-Output, X-Chunked-Output
Access-Control-Expose-Headers: X-Stream-Output, X-Chunked-Output
Content-Type: application/json
Server: go-ipfs/0.4.0-dev
Trailer: X-Stream-Error
Transfer-Encoding: chunked
Date: Tue, 15 Mar 2016 17:11:30 GMT
Transfer-Encoding: chunked

1
" ? :?^?E???p??\?|?.??t|d??U??cat.jpg?

The Content-Type should be application/protobuf, not application/json.

Metadata

Metadata

Assignees

Labels

kind/bugA bug in existing code (including security flaws)status/in-progressIn progress

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions