socialnetworknews-api

git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-api.git
Log | Files | Refs | LICENSE

commit ac6f8f330b51636e1d9cc6ddf356fb2aff78a055
parent 2efc3dfdfa73e28016b0bc0e50a5a1d8721a4ee9
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 31 Mar 2018 16:25:39 +0200

Also add ID

Diffstat:
Mapi/login/twitter.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/api/login/twitter.go b/api/login/twitter.go @@ -149,6 +149,7 @@ func IssueSession() http.Handler { session.Values[sessionUserKey] = twitterUser.ID session.Save(w) w.Header().Set("Authorization", "Bearer "+tokenString) + w.Header().Set("ID", twitterUser.IDStr) domain := req.Header.Get("Host") http.Redirect(w, req, domain, http.StatusFound) }