Skip to content

Commit 1d5254b

Browse files
committed
Corrected issues related to user feedback.
1 parent ba411d2 commit 1d5254b

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

src/Server/Coderr.Server.Web/Areas/Receiver/Controllers/FeedbackController.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,17 @@ public async Task<HttpResponseMessage> SupplyFeedback(string appKey, string sig)
8080
private async Task<string> UnpackContent()
8181
{
8282
var ms = new MemoryStream();
83+
await HttpContext.Current.Request.InputStream.CopyToAsync(ms);
84+
ms.Position = 0;
85+
86+
// not compressed.
87+
if (ms.GetBuffer()[0] == '{')
88+
{
89+
var str = new StreamReader(ms);
90+
return str.ReadToEnd();
91+
}
92+
93+
ms.Position = 0;
8394
using (var zipStream = new GZipStream(HttpContext.Current.Request.InputStream, CompressionMode.Decompress))
8495
{
8596
await zipStream.CopyToAsync(ms);

src/Server/Coderr.Server.Web/Views/Feedback/Incident.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
</style>
1212
<div id="row" style="width:100%">
13-
<div data-collection="Items">
13+
<div data-collection="Items" class="row">
1414
<div class="col">
1515
<div class="card-box tilebox-one">
1616
<h6 class="text-muted m-b-20" data-name="Title"></h6>

src/Server/Coderr.Server.Web/Views/Feedback/Overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
</style>
1212
<div id="View row" style="width:100%">
13-
<div data-collection="Items">
13+
<div data-collection="Items" class="row">
1414
<div class="col">
1515
<div class="card-box tilebox-one">
1616
<h6 class="text-muted m-b-20" data-name="Title"></h6>

0 commit comments

Comments
 (0)