with_appengine.go 463 B

1234567891011121314151617181920
  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 on 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. // No-op because App Engine adds context to a request differently.
  14. return req
  15. }