popcorn: there's no more a global curl handle, so this should be fixed
[nit.git] / lib / popcorn / pop_auth.nit
index 9d134fa..3dd71fb 100644 (file)
@@ -77,7 +77,8 @@
 # ~~~
 module pop_auth
 
-import pop_handlers
+import pop_json
+import pop_sessions
 import github
 
 # Github OAuth login handler.
@@ -196,9 +197,6 @@ class GithubOAuthCallBack
                        return
                end
 
-               # FIXME reinit curl before next request to avoid weird 404
-               curl = new Curl
-
                # Load github user
                var gh_api = new GithubAPI(access_token)
                var user = gh_api.load_auth_user