Hello,
I'm writing my own HTTP server in win32.
I also wrote an HTTP server in C# which is working OK. It is used as reference.
When Chrome works with the C# version, I got the following response:
"content": {
"size": 37277,
"mimeType": "application/javascript",
"text": "(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(e,t,n){e.exports=n(\"hN/g\")},\"hN/g\":function(e,t,n){\"use strict\";n.r(t),n(\"pDpN\")},pDpN:function(e,t)....}
-----------------------------------------------------------------------------------------------------------------------------
When Chrome works with the win32 version, I got the following response:
"content": {
"size": 37277,
"mimeType": "text/plain",
"text": "(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(e,t,n){e.exports=n(\"hN/g\")},\"hN/g\":function(e,t,n){\"use strict\";n.r(t),n(\"pDpN\")},pDpN:function(e,t)....}
I'm sending the reply body just after the reply headers.
In both versions, Chrome got the following header:
Content-Type: application/javascript
Can you please tell how should I set "mimeType" in the reply body ?
Thank you in advance,
Zvika
I'm writing my own HTTP server in win32.
I also wrote an HTTP server in C# which is working OK. It is used as reference.
When Chrome works with the C# version, I got the following response:
"content": {
"size": 37277,
"mimeType": "application/javascript",
"text": "(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(e,t,n){e.exports=n(\"hN/g\")},\"hN/g\":function(e,t,n){\"use strict\";n.r(t),n(\"pDpN\")},pDpN:function(e,t)....}
-----------------------------------------------------------------------------------------------------------------------------
When Chrome works with the win32 version, I got the following response:
"content": {
"size": 37277,
"mimeType": "text/plain",
"text": "(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{2:function(e,t,n){e.exports=n(\"hN/g\")},\"hN/g\":function(e,t,n){\"use strict\";n.r(t),n(\"pDpN\")},pDpN:function(e,t)....}
I'm sending the reply body just after the reply headers.
In both versions, Chrome got the following header:
Content-Type: application/javascript
Can you please tell how should I set "mimeType" in the reply body ?
Thank you in advance,
Zvika