aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/without_appengine.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/without_appengine.go')
-rw-r--r--vendor/github.com/google/go-github/github/without_appengine.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/github.com/google/go-github/github/without_appengine.go b/vendor/github.com/google/go-github/github/without_appengine.go
new file mode 100644
index 0000000..b0edc04
--- /dev/null
+++ b/vendor/github.com/google/go-github/github/without_appengine.go
@@ -0,0 +1,19 @@
+// Copyright 2017 The go-github 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
+
+// This file provides glue for making github work without App Engine.
+
+package github
+
+import (
+ "context"
+ "net/http"
+)
+
+func withContext(ctx context.Context, req *http.Request) (context.Context, *http.Request) {
+ return ctx, req.WithContext(ctx)
+}