socialnetworknews-api

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

commit ac063d63e53715426e995eaa8f961234134c0530
parent f28d3fdcec60ad06da2df958a02964e5562b96a3
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 31 Mar 2018 21:50:32 +0200

Just return status 200 and handle the redirect on the client page

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

diff --git a/api/login/twitter.go b/api/login/twitter.go @@ -156,7 +156,7 @@ func IssueSession() http.Handler { w.Header().Set("ID", twitterUser.IDStr) domain := req.Host log.Println("domain:", domain) - http.Redirect(w, req, domain, http.StatusFound) + w.WriteHeader(http.StatusOK) } return http.HandlerFunc(fn) }