Loading exe/labkit-logging +3 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,9 @@ module Labkit http.read_timeout = 30 req = Net::HTTP::Get.new(uri.request_uri) req['PRIVATE-TOKEN'] = token http.request(req) resp = http.request(req) abort "Unauthorized: check that your GitLab token is valid and has access to this project" if resp.is_a?(Net::HTTPUnauthorized) || resp.is_a?(Net::HTTPForbidden) resp end def token Loading Loading
exe/labkit-logging +3 −1 Original line number Diff line number Diff line Loading @@ -176,7 +176,9 @@ module Labkit http.read_timeout = 30 req = Net::HTTP::Get.new(uri.request_uri) req['PRIVATE-TOKEN'] = token http.request(req) resp = http.request(req) abort "Unauthorized: check that your GitLab token is valid and has access to this project" if resp.is_a?(Net::HTTPUnauthorized) || resp.is_a?(Net::HTTPForbidden) resp end def token Loading