Skip to content

Commit

Permalink
Fix get persistent process state in Chrome and Firefox
Browse files Browse the repository at this point in the history
Before adding this header to the HTTP response, observed the following problem: In Chrome 81 dev tools, saving the response content from the Network tab results in destructions of non-ASCII characters like 🔊.
  • Loading branch information
Viir committed Apr 18, 2020
1 parent fdf5e30 commit 1fadfc5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ static async Task AdminPersistentProcessMiddlewareFromWebAppConfig(
persistentProcess.ReductionRecordForCurrentState().ReducedValueLiteralString;

context.Response.StatusCode = 200;
context.Response.ContentType = "application/json";
await context.Response.WriteAsync(reducedValueLiteralString);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion implement/elm-fullstack/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace elm_fullstack
{
class Program
{
static string AppVersionId => "2020-04-17";
static string AppVersionId => "2020-04-18";

static int Main(string[] args)
{
Expand Down
4 changes: 2 additions & 2 deletions implement/elm-fullstack/elm-fullstack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>elm_fullstack</RootNamespace>
<AssemblyName>elm-fullstack</AssemblyName>
<AssemblyVersion>2020.0417.0.0</AssemblyVersion>
<FileVersion>2020.0417.0.0</FileVersion>
<AssemblyVersion>2020.0418.0.0</AssemblyVersion>
<FileVersion>2020.0418.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 1fadfc5

Please sign in to comment.