without_appengine.go 418 B

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