Comments (7)
All tests pass, here. This issue can be closed.
from cro-http.
Hmm, unfortunately, I am having an issue with reproducing it.
Wed Nov 7 04:05:07 +10 2018
➜ cro-http git:(master) /home/koto/.rakudobrew/moar-master/install/bin/perl6 --version
This is Rakudo version 2018.10-78-g8b93ec9f5 built on MoarVM version 2018.10-72-g4fbaeee5f
implementing Perl 6.d.
➜ cro-http git:(master) /home/koto/.rakudobrew/moar-master/install/bin/perl6 -Ilib t/http-cookiejar.t
ok 1 - Empty cookie jar contents returns empty list
ok 2 - Empty cookie jar contents with uri returns empty list
ok 3 - Two cookies were added
ok 4 - Cookie addition is neutral
ok 5 - Cookie with bad domain was not added
ok 6 - Uri-based check
ok 7 - Good cookies are here
ok 8 - Clear for absent url leaves jar untouched
ok 9 - Clear for absent url with existing cookie name leaves jar untouched
ok 10 - One cookie was removed
ok 11 - All cookies from correct domain were removed
ok 12 - Call to clear clears cookie jar
ok 13 - Cookie with duration was added successfully
ok 14 - Creation time is preserved during cookie update
ok 15 - Cookie was deleted on negative-time cookie addition
ok 16 - Cookies are added for sub-domains
ok 17 - Rejected for incorrect sub-domain
ok 18 - Header was added
ok 19 - Setted string is correct
1..19
➜ cro-http git:(master)
I also changed timezone as jnthn suggested, so
➜ cro-http git:(master) date
Wed Nov 7 04:04:50 +10 2018
^ no luck with that.
I've built the same rakudo version. I am on a linux setup. Do you have any clues what might be important here?
from cro-http.
What timezone did you change it to? I got the same failure as Xliff did from Pacific Time (UTC-8), and I think it's dependent on being >5 hours west of UTC, so that (((now in local time) + 5 hours) reinterpreted as UTC) appears to be in the past.
from cro-http.
Reproduced that, fixing.
from cro-http.
db1a67c
Timezones are tricky, so a review will be welcome, but as a general thing:
1)RFC requires time be passed in GMT, so we do that.
2)Set local expiry time.
This makes tests pass, though I am not really sure how it should behave.
from cro-http.
ping @Xliff
Can this issue be closed now?
from cro-http.
Ack! Let me check on my end! :)
from cro-http.
Related Issues (20)
- Is cookies format specific to browsers? HOT 6
- Repeatable HTTP 2 issue HOT 2
- Installation Failure - "Tried to get the result of a broken Promise..." HOT 1
- Please show URL on a 404 in HTTP::Client
- Warning during installation - "rakudo is loading libcrypto in an unsafe way" HOT 4
- Multiple Cro::HTTP::Client objects fetching the same URL, hangs often HOT 2
- Native call expected argument 2 to reference a native integer, but got NativeRef HOT 2
- Cro::HTTP::Cookie fails to parse cookies from podverse.net HOT 1
- Flaky test failures for 0.8.7 on Rakudo 2022.04 HOT 1
- Cro::HTTP::Client stopped working (after upgrade to the latest version of Raku) HOT 8
- Cookie order in header does not follow RFC6265
- Client unable to fetch URLs with comma
- ignore cookie that don't respect RFC
- Minor test issue installing on new MacOS Ventura 13.3 -- "Tests out of sequence." found/expected 47/48; 48/47
- No error when port is already taken?
- Cro logging mangles shell display
- Cro::HTTP::Client is not behaving correctly when using https proxy HOT 1
- Mishandling of headers timeout when sending out a big body
- A method to reset connection
- Unable to read the default `.pem` files generated by a Cro app. HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cro-http.