Merge pull request #37 from stacktic/DropboxAuthFix

Add Dropbox to the providers not supporting Auth headers.
This commit is contained in:
Burcu Dogan 2014-09-08 09:59:12 -07:00
commit 85a0f4506d

View File

@ -285,7 +285,8 @@ func providerAuthHeaderWorks(tokenURL string) bool {
if strings.HasPrefix(tokenURL, "https://accounts.google.com/") ||
strings.HasPrefix(tokenURL, "https://github.com/") ||
strings.HasPrefix(tokenURL, "https://api.instagram.com/") ||
strings.HasPrefix(tokenURL, "https://www.douban.com/") {
strings.HasPrefix(tokenURL, "https://www.douban.com/") ||
strings.HasPrefix(tokenURL, "https://api.dropbox.com/") {
// Some sites fail to implement the OAuth2 spec fully.
return false
}