Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread 松舘剛志
I'll plan to make a Twitter-linked web application like Favstar. Therefore I tried call Twitter APIs, then I tried to pass its response to ring, compojure, lib-noir and etc. In its process, Expires field in cookie has been regarded as invalid by Ring's pre-assert code. 2017年1月9日月曜日 13時12分20秒 UTC

Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread James Reeves
On 9 January 2017 at 03:43, 松舘剛志 wrote: > I hope to think so too, but I don't know what will happen when remove > cookie... > What's the purpose of your code? Your code takes a response from the Twitter API, and then attempts to proxy it. But why? If we knew what you are trying to accomplish,

Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread 松舘剛志
This header is responded by Twitter. :headers {"connection" "close", "content-type" "application/json; charset=utf-8", "date" "Mon, 09 Jan 2017 03:45:47 GMT", "server" "tsa_m", "set-cookie" "guest_id=v1%3A148393354710069437; Domain=.twitter.com; Path=/; Expires=Wed, 09-Jan-2019 03:45:47 UTC", "

Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread 松舘剛志
I hope to think so too, but I don't know what will happen when remove cookie... 2017年1月9日月曜日 12時32分47秒 UTC+9 James Reeves: > > On 9 January 2017 at 02:37, 松舘剛志 > wrote: > >> Hi, James. >> Thank you for response. >> >> I've understood clj-http response and ring response are not identical. >> I hop

Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread James Reeves
On 9 January 2017 at 02:37, 松舘剛志 wrote: > Hi, James. > Thank you for response. > > I've understood clj-http response and ring response are not identical. > I hope to know way to respond cookies via Twitter as valid one. > Would you know way to respond it? > Why do you want cookies from Twitter's

Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread 松舘剛志
Hi, James. Thank you for response. I've understood clj-http response and ring response are not identical. I hope to know way to respond cookies via Twitter as valid one. Would you know way to respond it? 2017年1月9日月曜日 0時38分59秒 UTC+9 James Reeves: > > To add some background to this: the author repo

Re: The Expires field in cookies has failed pre-assert.

2017-01-08 Thread James Reeves
To add some background to this: the author reported this as an issue on Ring. They appear to be trying to turn clj-http response into a Ring response, so this isn't anything directly to do with cookies. The problem is that clj-http responses are similar but not identical to Ring responses. Perhaps

The Expires field in cookies has failed pre-assert.

2017-01-08 Thread 松舘剛志
For example, When call some Twitter APIs: (ns foo (:require [clj-http.client :as http] [ring.util.response :as ring]) (:import [clojure.lang ExceptionInfo])) (try (let [response (http/post "https://api.twitter.com/1.1/statuses/show.json";)] #_"Something to do." (rin