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 //go:build !appengine 7 // +build !appengine 8 9 // This file provides glue for making github work without App Engine. 10 11 package github 12 13 import ( 14 "context" 15 "net/http" 16 ) 17 18 func withContext(ctx context.Context, req *http.Request) *http.Request { 19 return req.WithContext(ctx) 20 } 21