1 // Copyright 2017 The go-github AUTHORS. All rights reserved. 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file. 5 6 // +build !appengine 7 8 // This file provides glue for making github work without App Engine. 9 10 package github 11 12 import ( 13 "context" 14 "net/http" 15 ) 16 17 func withContext(ctx context.Context, req *http.Request) *http.Request { 18 return req.WithContext(ctx) 19 } 20