andeya/faygo

ctx.URL().Scheme is empty

sipt opened this issue · 2 comments

sipt commented

ctx.URL() to JSON:

{
    "Scheme": "",
    "Opaque": "",
    "User": null,
    "Host": "",
    "Path": "/captcha",
    "RawPath": "",
    "ForceQuery": false,
    "RawQuery": "params=asdf",
    "Fragment": ""
}

Most of them are empty. How to get theirs value?

URL comes from the net/http standard package. It is resolved by the url string. There are usually some empty values.

sipt commented

Thanks.