Add support for Intel Comet Lake

Also add CORS header for https://github.com/openhardwaremonitor/openhardwaremonitor/issues/1234
This commit is contained in:
Phyxion
2020-03-02 17:14:00 +01:00
parent 5bd108167d
commit 42e6a3eb19
2 changed files with 57 additions and 47 deletions
+2 -1
View File
@@ -415,11 +415,12 @@ namespace LibreHardwareMonitor.Utilities
#if DEBUG
string responseContent = json.ToString(Newtonsoft.Json.Formatting.Indented);
#else
var responseContent = json.ToString(Newtonsoft.Json.Formatting.None);
string responseContent = json.ToString(Newtonsoft.Json.Formatting.None);
#endif
byte[] buffer = Encoding.UTF8.GetBytes(responseContent);
response.AddHeader("Cache-Control", "no-cache");
response.AddHeader("Access-Control-Allow-Origin", "*");
response.ContentLength64 = buffer.Length;
response.ContentType = "application/json";