oauth17.go 178 B

123456789101112
  1. // +build go1.7
  2. package oauth
  3. import (
  4. "context"
  5. "net/http"
  6. )
  7. func requestWithContext(ctx context.Context, req *http.Request) *http.Request {
  8. return req.WithContext(ctx)
  9. }