mirror of
https://github.com/aaru-dps/Aaru.Server.git
synced 2025-12-16 19:24:27 +00:00
REFACTOR: Use string interpolation expression.
This commit is contained in:
@@ -59,8 +59,7 @@ namespace DiscImageChef.Core
|
||||
xmlSer.Serialize(xmlStream, report);
|
||||
xmlStream.Seek(0, SeekOrigin.Begin);
|
||||
WebRequest request = WebRequest.Create("http://discimagechef.claunia.com/api/uploadreport");
|
||||
((HttpWebRequest)request).UserAgent =
|
||||
string.Format("DiscImageChef {0}", typeof(Version).Assembly.GetName().Version);
|
||||
((HttpWebRequest)request).UserAgent = $"DiscImageChef {typeof(Version).Assembly.GetName().Version}";
|
||||
request.Method = "POST";
|
||||
request.ContentLength = xmlStream.Length;
|
||||
request.ContentType = "application/xml";
|
||||
|
||||
Reference in New Issue
Block a user