Closed Bowbaq closed 9 years ago
Thanks for reporting this. It looks like we might need to use (*encoding/json.Decoder).UseNumber
and the interface{}
type to ensure that precision is retained. If anyone would be willing to submit a PR for this, I would greatly appreciate it.
I'm happy to make the changes, but this looks like it will break the API. Is that cool?
Fine with me. Thank you!
It seems that when using ChromeDriver (and perhaps other drivers), sometimes the value returned for the cookie's
expiry
field doesn't deserialize as auint
.For example:
Notice how the
expiry
field has a period followed by a bunch of digits. I'm guessing this is fractions of a second?I changed the type of
Expiry
tointerface{}
in my fork to fix the immediate issue. Maybe there is a way to detect this & handle it better though.