-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Correctly set the content type for object get --encoding=protobuf
#2516
Conversation
d6cc942
to
becd679
Compare
Unfortunately, I have no idea why my test cases are failing. They when I run them manually. |
' | ||
|
||
test_expect_success "'ipfs object get --encoding=json' returns the correct content type" ' | ||
HASH="QmWkHFpYBZ9mpPRreRbMhhYWXfUhBAue3JkbbpFqwowSRb" && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to re-set the HASH
variable in each scope. shell variables like this are global(ish)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I did the first time around but it still failed.
Steven Allen
8b2a8b4
to
2e9d36a
Compare
I didn't realize those tests were run offline as well... |
I'm pretty sure the other failing tests are not my fault. |
Also subscribing. |
It used to default to `application/json` but is now correctly set to `application/protobuf`. fixes ipfs#2469 License: MIT Signed-off-by: Steven Allen <[email protected]>
2e9d36a
to
a72d26b
Compare
@noffle i assigned another related PR to you, so i'm gonna assign this one as well |
LGTM, the change looks much bigger than it is because golang indenting changes but it is really very small change. |
LGTM, great to finally have this merged in |
Does this only apply to |
@RichardLitt Yes. Are there any other endpoints that return protocol buffers? |
@Stebalien Looked again; not that I could see. Sweet. |
It used to default to
application/json
but is now correctly set toapplication/protobuf
.fixes #2469
License: MIT
Signed-off-by: Steven Allen [email protected]