aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/golang.org/x/oauth2/client_appengine.go
diff options
context:
space:
mode:
authorPaul Zabelin2016-04-17 03:22:31 -0700
committerPaul Zabelin2016-04-17 03:22:31 -0700
commitb5eb2866cfceb69b0d4dd4948273d679a884fbb2 (patch)
tree1fdb61a7138642a1612bb201434e8ebda141cc8a /vendor/golang.org/x/oauth2/client_appengine.go
parent8de8e05c483c6b5f23b14742315f1860211dcef7 (diff)
downloadgdrive-b5eb2866cfceb69b0d4dd4948273d679a884fbb2.tar.bz2
add Go dependencies by godep
see https://github.com/tools/godep
Diffstat (limited to 'vendor/golang.org/x/oauth2/client_appengine.go')
-rw-r--r--vendor/golang.org/x/oauth2/client_appengine.go25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/golang.org/x/oauth2/client_appengine.go b/vendor/golang.org/x/oauth2/client_appengine.go
new file mode 100644
index 0000000..8962c49
--- /dev/null
+++ b/vendor/golang.org/x/oauth2/client_appengine.go
@@ -0,0 +1,25 @@
+// Copyright 2014 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build appengine
+
+// App Engine hooks.
+
+package oauth2
+
+import (
+ "net/http"
+
+ "golang.org/x/net/context"
+ "golang.org/x/oauth2/internal"
+ "google.golang.org/appengine/urlfetch"
+)
+
+func init() {
+ internal.RegisterContextClientFunc(contextClientAppEngine)
+}
+
+func contextClientAppEngine(ctx context.Context) (*http.Client, error) {
+ return urlfetch.Client(ctx), nil
+}