On Sunday, October 5, 2014 8:35:35 AM UTC-4, Chris Perkins wrote:
> On Saturday, October 4, 2014 2:58:03 PM UTC-6, Tom George wrote:
> > 
> > On the compojure side:
> > 
> > (GET "/owners" [] (table-owners))
> > 
> > (defn table-owners
> >  []
> >  (let [response (client/get (str base "/owners") {:debug true})]
> >    (println "response! " response)
> >    response))
> > 
> 
> Assuming that client/get is from clj-http, you should return (:body response) 
> here.
> 
> The response map probably contains headers that are no longer applicable - in 
> this case, the chunked response headers from the downstream server. The 
> response you are sending to the browser is no longer chunked, because 
> clj-http has collected it into the :body string.
> 
> 
> - Chris

Chris,

Thanks a lot, you were right.  I guess I kind of figured that the server -> 
browser transfer would also be chunked (goes to show how much I know about this 
stuff).

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to