You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2022/11/08 07:59:53 UTC

[GitHub] [servicecomb-service-center] little-cui commented on a diff in pull request #1355: Change: sc gov-resource pass-through Authorization to kie

little-cui commented on code in PR #1355:
URL: https://github.com/apache/servicecomb-service-center/pull/1355#discussion_r1016253746


##########
server/resource/gov/gov_resource.go:
##########
@@ -119,10 +125,12 @@ func (t *Governance) ListOrDisPlay(w http.ResponseWriter, r *http.Request) {
 	environment := query.Get(EnvironmentKey)
 	var body []byte
 	var err error
+	ctx := r.Context()
+	ctx = util.SetContext(ctx, AuthorizationKey, r.Header.Get(AuthorizationKey))

Review Comment:
   抽取到github.com\apache\servicecomb-service-center\server\service\auth\context.go中,命名WithContext



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org