X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b6d7efab2c4bffa3fabd55b166e44cca8ac1391f..774d4659d60c017e9d3e0f68c5726abbe2465007:/sdk/go/arvados/login.go?ds=sidebyside diff --git a/sdk/go/arvados/login.go b/sdk/go/arvados/login.go index 75ebc81c14..ab76375462 100644 --- a/sdk/go/arvados/login.go +++ b/sdk/go/arvados/login.go @@ -10,8 +10,8 @@ import ( ) type LoginResponse struct { - RedirectLocation string - HTML bytes.Buffer + RedirectLocation string `json:"redirect_location,omitempty"` + HTML bytes.Buffer `json:"-"` } func (resp LoginResponse) ServeHTTP(w http.ResponseWriter, req *http.Request) { @@ -26,7 +26,7 @@ func (resp LoginResponse) ServeHTTP(w http.ResponseWriter, req *http.Request) { } type LogoutResponse struct { - RedirectLocation string + RedirectLocation string `json:"redirect_location,omitempty"` } func (resp LogoutResponse) ServeHTTP(w http.ResponseWriter, req *http.Request) {