diff --git a/WinHue3/Build/README_TEMPLATE.txt b/WinHue3/Build/README_TEMPLATE.txt index 818dfd70..43b0cd7c 100644 --- a/WinHue3/Build/README_TEMPLATE.txt +++ b/WinHue3/Build/README_TEMPLATE.txt @@ -9,6 +9,7 @@ Both are available at Microsoft's website. Fixed: - Unable to save rules or edit them. - No Archetype resulting in an exception while getting the light type. +- Http send command error. Added: - Smaller icon view. diff --git a/WinHue3/Philips Hue/Communication2/Communication.cs b/WinHue3/Philips Hue/Communication2/Communication.cs index 0cc33c18..83b0c240 100644 --- a/WinHue3/Philips Hue/Communication2/Communication.cs +++ b/WinHue3/Philips Hue/Communication2/Communication.cs @@ -97,10 +97,10 @@ public static HttpResult SendRequest(Uri url, WebRequestType type, string data = httpr = client.GetAsync(url).Result; break; case WebRequestType.Post: - httpr = client.PutAsync(url, new StringContent(data)).Result; + httpr = client.PostAsync(url, new StringContent(data)).Result; break; case WebRequestType.Delete: - httpr = client.PutAsync(url, new StringContent(data)).Result; + httpr = client.DeleteAsync(url).Result; break; default: throw new ArgumentOutOfRangeException(nameof(type), type, $"{type} is not a recognized value."); diff --git a/WinHue3/Properties/AssemblyInfo.cs b/WinHue3/Properties/AssemblyInfo.cs index 85c33923..2f2ee7d7 100644 --- a/WinHue3/Properties/AssemblyInfo.cs +++ b/WinHue3/Properties/AssemblyInfo.cs @@ -49,6 +49,6 @@ // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut // en utilisant '*', comme indiqué ci-dessous : // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("3.0.4716.0")] +[assembly: AssemblyVersion("3.0.4718.0")] //[assembly: AssemblyFileVersion("3.0.*")] [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)] \ No newline at end of file