16212: Support username/password authentication via PAM.
[arvados.git] / sdk / go / arvados / client.go
index 67e3f631174ce86741190a25aa4ce8a63864fd1f..1e2c07e867e84d6d6719fdd4f9298b005a86c6e9 100644 (file)
@@ -186,7 +186,7 @@ func (c *Client) DoAndDecode(dst interface{}, req *http.Request) error {
                return nil
        case isRedirectStatus(resp.StatusCode):
                // Copy the redirect target URL to dst.RedirectLocation.
-               buf, err := json.Marshal(map[string]string{"RedirectLocation": resp.Header.Get("Location")})
+               buf, err := json.Marshal(map[string]string{"redirect_location": resp.Header.Get("Location")})
                if err != nil {
                        return err
                }