Update tests related to make_output_collection
[arvados.git] / sdk / go / arvados / login.go
index 75ebc81c142b1ee167bafa7792923513af3c5120..ab7637546289a659651c9648907b0558cfe1c064 100644 (file)
@@ -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) {