Path match fail.
If set-cookie path has end of '/', it can not match url path without '/'.
RFC6265 5.1.4 says
----------
4. Output the characters of the uri-path from the first character up
   to, but not including, the right-most %x2F ("/").
----------
but, for example, URL path /hoge?fuga=xxx means /hoge/index.cgi?fuga=xxx in some site without redirect.
Ignore this algorithm because /hoge is uri path for this case(uri path is not '/').

So cURL struct Cookie keeps path without end of '/' then do path match.