Skip to content

Commit 7b794ac

Browse files
committed
Encode oauth_token. Fixes restsharp#1495
1 parent 2ebdbc2 commit 7b794ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/RestSharp/Authenticators/OAuth/OAuthWorkflow.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// distributed under the License is distributed on an "AS IS" BASIS,
1111
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
// See the License for the specific language governing permissions and
13-
// limitations under the License.
13+
// limitations under the License.
1414

1515
using System;
1616
using System.Collections.Generic;
@@ -215,7 +215,7 @@ WebPairCollection GenerateAuthParameters(string timestamp, string nonce)
215215
new WebPair("oauth_version", Version ?? "1.0")
216216
};
217217

218-
if (!Token.IsEmpty()) authParameters.Add(new WebPair("oauth_token", Token));
218+
if (!Token.IsEmpty()) authParameters.Add(new WebPair("oauth_token", Token, true));
219219

220220
if (!CallbackUrl.IsEmpty()) authParameters.Add(new WebPair("oauth_callback", CallbackUrl, true));
221221

0 commit comments

Comments
 (0)