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

More permissive Content-Type interpretation to pretty-print responses #334

Closed
p2 opened this issue Mar 31, 2015 · 2 comments
Closed

More permissive Content-Type interpretation to pretty-print responses #334

p2 opened this issue Mar 31, 2015 · 2 comments

Comments

@p2
Copy link

p2 commented Mar 31, 2015

It looks like HTTPie doesn't like FHIR's content type of application/json+fhir and therefore doesn't pretty-print the response. It would be neat if it did! Issue #92 is related but here the content type could be enough for HTTPie to figure out how to pretty print, no need to force from the user side.

Example:

http -j http://argonaut.healthintersections.com.au/open/OperationDefinition/fso-document
@jkbrzt
Copy link
Member

jkbrzt commented Mar 31, 2015

@p2 I think you might be using an older version of HTTPie — it's correctly interpreted as JSON in the latest version.

$ http --version
0.9.2

@p2
Copy link
Author

p2 commented Mar 31, 2015

Oh, I've updated via brew but only have 0.8.0. Happy to hear that it's supposed to be working, thanks!

(brew update helps, d'oh!)

@p2 p2 closed this as completed Mar 31, 2015
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

2 participants