From 29f57085aa91a751732b315e7a8e2baadcefa377 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Sat, 16 Nov 2013 15:34:36 +0100 Subject: [PATCH] add IE11 user agent for PocketReader; update to RC3 --- PocketSharp.Reader/PocketReader.cs | 4 ++-- PocketSharp.Reader/Properties/AssemblyInfo.cs | 2 +- PocketSharp/PocketClient.cs | 2 +- PocketSharp/Properties/AssemblyInfo.cs | 2 +- README.md | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PocketSharp.Reader/PocketReader.cs b/PocketSharp.Reader/PocketReader.cs index 8340938..0944895 100644 --- a/PocketSharp.Reader/PocketReader.cs +++ b/PocketSharp.Reader/PocketReader.cs @@ -15,7 +15,7 @@ namespace PocketSharp /// /// Used UserAgent for HTTP request /// - protected string _userAgent = "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.4 Safari/537.36 OPR/18.0.1284.2"; + protected string _userAgent = "Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0; ARM; Mobile; Touch{0}) like Gecko"; /// /// REST client used for HTML retrieval @@ -48,7 +48,7 @@ namespace PocketSharp _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("Accept-Encoding", "gzip,deflate"); // add user agent - _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", _userAgent + " PocketSharp / 3.0"); + _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", string.Format(_userAgent, "; PocketSharp/3.0")); } diff --git a/PocketSharp.Reader/Properties/AssemblyInfo.cs b/PocketSharp.Reader/Properties/AssemblyInfo.cs index d938094..2d0883b 100644 --- a/PocketSharp.Reader/Properties/AssemblyInfo.cs +++ b/PocketSharp.Reader/Properties/AssemblyInfo.cs @@ -23,4 +23,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.0.0")] -[assembly: AssemblyFileVersion("3.0.0 RC2")] \ No newline at end of file +[assembly: AssemblyFileVersion("3.0.0 RC3")] \ No newline at end of file diff --git a/PocketSharp/PocketClient.cs b/PocketSharp/PocketClient.cs index 05a09d3..a05a2b5 100644 --- a/PocketSharp/PocketClient.cs +++ b/PocketSharp/PocketClient.cs @@ -135,7 +135,7 @@ namespace PocketSharp { if (requireAuth && AccessCode == null) { - throw new PocketException("SDK error: No access token available. Use authentification first."); + throw new PocketException("SDK error: No access token available. Use authentication first."); } // every single Pocket API endpoint requires HTTP POST data diff --git a/PocketSharp/Properties/AssemblyInfo.cs b/PocketSharp/Properties/AssemblyInfo.cs index 8c32bac..f2122b2 100644 --- a/PocketSharp/Properties/AssemblyInfo.cs +++ b/PocketSharp/Properties/AssemblyInfo.cs @@ -23,4 +23,4 @@ // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.0.0")] -[assembly: AssemblyFileVersion("3.0.0 RC2")] \ No newline at end of file +[assembly: AssemblyFileVersion("3.0.0 RC3")] \ No newline at end of file diff --git a/README.md b/README.md index dfee70a..e7bb21f 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,7 @@ You can find examples for Silverlight 5, WP8 and WPF in the `PocketSharp.Example - [x] make setters for inline objects in PocketItem (images, videos, ...) - [x] IPocketClient interface - [x] PreRequest callback allows injection of `Action` before every request -- [ ] Submit multiple actions in one request +- [x] Submit multiple actions in one request - [x] Split PocketReader into own NuGet package - [x] bugfixes, for sure!