From 874e959e0940032af2b854bc32e6fcf7e86f8bd5 Mon Sep 17 00:00:00 2001 From: Pablo Fernandez Date: Mon, 25 Oct 2010 12:11:50 -0300 Subject: [PATCH] Fixed bug in scope for Google --- src/main/java/org/scribe/model/OAuthRequest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/scribe/model/OAuthRequest.java b/src/main/java/org/scribe/model/OAuthRequest.java index a712ae9..ec7f023 100644 --- a/src/main/java/org/scribe/model/OAuthRequest.java +++ b/src/main/java/org/scribe/model/OAuthRequest.java @@ -41,7 +41,7 @@ public class OAuthRequest extends Request private String checkKey(String key) { - if (!key.startsWith(OAUTH_PREFIX) || key.equals(OAuthConstants.SCOPE)) + if (!key.startsWith(OAUTH_PREFIX) || !key.equals(OAuthConstants.SCOPE)) { throw new IllegalArgumentException(String.format("OAuth parameters must either be %s or start with '%s'", OAuthConstants.SCOPE, OAUTH_PREFIX)); } else