gojek / heimdall

An enhanced HTTP client for Go
http://gojek.tech
Apache License 2.0
2.63k stars 214 forks source link

heimdall response returns 200 status but return data in stream format #65

Closed MuthukumarHelios closed 5 years ago

MuthukumarHelios commented 5 years ago

Current Working Code which having Raw http and heimdallHttpClient (internal Api) the below gist code having both success case and error case

https://gist.github.com/MuthukumarHelios/79ef131001a9f8fb5b2b4232c63c6b50

rShetty commented 5 years ago

@MuthukumarHelios Can you use gist to paste some sample code which is failing ?

MuthukumarHelios commented 5 years ago

@rShetty see the edit which having code sample

rShetty commented 5 years ago

@MuthukumarHelios I am getting 200 OK with Heimdall, not sure what is the problem you are facing ? Can you elaborate

MuthukumarHelios commented 5 years ago

https://user-images.githubusercontent.com/17043792/55023833-a727ed80-5023-11e9-94f6-74485a78413f.png --> response i am geeting it after using heimdall code sample edited with w.write(data) //raw method