File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
frameworks/CSharp/sisk/sisk-cadente Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1313
1414void Host_ContextCreated ( HttpHost sender , HttpHostContext session ) {
1515 var request = session . Request ;
16-
16+
1717 if ( request . Path == "/plaintext" ) {
1818 SerializePlainTextResponse ( session . Response ) ;
1919 }
@@ -38,7 +38,7 @@ static void SerializeJsonResponse ( HttpHostContext.HttpResponse response ) {
3838 var contentBytes = JsonSerializer . SerializeToUtf8Bytes ( new {
3939 message = "Hello, World!"
4040 } ) ;
41-
41+
4242 response . Headers . Add ( new HttpHeader ( "Content-Type" , "application/json" ) ) ;
4343 response . ResponseStream = new MemoryStream ( contentBytes ) ;
4444}
Original file line number Diff line number Diff line change 99 </PropertyGroup >
1010
1111 <ItemGroup >
12- <PackageReference Include =" Sisk.Cadente" Version =" 0.1.52-alpha3 " />
12+ <PackageReference Include =" Sisk.Cadente" Version =" 0.1.64-alpha4 " />
1313 </ItemGroup >
1414
1515</Project >
You can’t perform that action at this time.
0 commit comments