route/vendor/github.com/go-resty/resty/context17_test.go

16 lines
402 B
Go
Raw Normal View History

2017-09-30 16:47:47 +00:00
// +build !go1.8
// Copyright (c) 2015-2016 Jeevanandam M (jeeva@myjeeva.com)
// 2016 Andrew Grigorev (https://github.com/ei-grad)
// All rights reserved.
// resty source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
package resty
import "strings"
func errIsContextCanceled(err error) bool {
return strings.Contains(err.Error(), "request canceled")
}