We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The function ParseURLResponse does not accept URLs, only paths. Providing a URL as input does not fail, but produces unexpected results.
HandshakeInfo
Message
Example code with output:
package main import ( "fmt" "log" "github.com/google/glome/go/glome" "github.com/google/glome/go/login" ) func main() { srv := login.Server{KeyFetcher: func(_ uint8) (*glome.PrivateKey, error) { var key glome.PrivateKey key[5] = 1 return &key, nil }} resp, err := srv.ParseURLResponse("https://glome.example.com/v1/UYcvQ1u4uJ0OOtYqouURB07hleHDnvaogAFBi-ZW48N2/serial-number:123/reboot/") if err != nil { log.Fatal(err) } fmt.Printf("login.Message%+v\n", resp.Msg) }
login.Message{HostIDType:https HostID: Action:/glome.example.com/v1/UYcvQ1u4uJ0OOtYqouURB07hleHDnvaogAFBi-ZW48N2/serial-number:123/reboot}
The text was updated successfully, but these errors were encountered:
6648ac8 changed the ParseURLResponse implementation. Running the program listed above, results now the correct output:
ParseURLResponse
login.Message{HostIDType:serial-number HostID:123 Action:reboot}
There are still ways to improvement that function but I believe we can do it as a part of #102.
Sorry, something went wrong.
No branches or pull requests
The function ParseURLResponse does not accept URLs, only paths. Providing a URL as input does not fail, but produces unexpected results.
HandshakeInfo
seems to be computed correctly.Message
is wrong.Example code with output:
The text was updated successfully, but these errors were encountered: