本站源代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
463B

  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. }
上海开阖软件有限公司 沪ICP备12045867号-1