Skip to content

goframe中怎么使用 #16

Description

@chaegumi
	req := g.RequestFromCtx(ctx)
	ctx1 := oauth2.NewOpenIDContext(ctx, "123")
	req = g.RequestFromCtx(ctx1)
	// req.SetCtx(ctx1)
	srv.HandleAuthorize(req.Response.ResponseWriter, req.Request)

我的理解是这样使用的,但是会报错

http: superfluous response.WriteHeader call from github.com/gogf/gf/v2/net/ghttp/internal/response.(*Writer).WriteHeader (response_writer.go:36)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions