Skip to content
This repository has been archived by the owner on Jul 18, 2020. It is now read-only.

Commit

Permalink
Merge pull request #245 from Hyrules/dev
Browse files Browse the repository at this point in the history
Fix http send command sync
  • Loading branch information
Hyrules authored Jun 25, 2019
2 parents 5ef81e1 + f843289 commit bf0d1e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions WinHue3/Build/README_TEMPLATE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions WinHue3/Philips Hue/Communication2/Communication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion WinHue3/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]

0 comments on commit bf0d1e6

Please sign in to comment.