Skip to content

Commit

Permalink
Fix coprocess auth
Browse files Browse the repository at this point in the history
  • Loading branch information
buger committed Jun 13, 2018
1 parent 5f52679 commit 67fa188
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion coprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,11 @@ func (m *CoProcessMiddleware) ProcessRequest(w http.ResponseWriter, r *http.Requ
returnedSession.MetaData[k] = string(v)
}

ctxSetSession(r, returnedSession, sessionID, true)
if extractor == nil {
ctxSetSession(r, returnedSession, token, true)
} else {
ctxSetSession(r, returnedSession, sessionID, true)
}
}

return nil, 200
Expand Down

0 comments on commit 67fa188

Please sign in to comment.