You need to sign in or sign up before continuing.
Response types from gitlab upstream are not parsed correctly
This is a very similar issue to https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/merge_requests/430 - the same solution should be fine.
internal/api/api.go:
201 if contentType := httpResponse.Header.Get("Content-Type"); contentType != ResponseContentType {
202 return httpResponse, nil, fmt.Errorf("preAuthorizeHandler: API responded with wrong content type: %v", contentType)
203 }
I came across this while working on !83 (merged), and spent a bit of time modifying the rails side so it would return a header without ; charset=utf-8
. It seems reasonable to parse the header correctly here. Wdyt @jacobvosmaer-gitlab ?