jiangzhw / ratproxy

Automatically exported from code.google.com/p/ratproxy
0 stars 0 forks source link

Sniffed MIME type "application_javascript" instead of "application/javascript" #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure why ratproxy detects JavaScript code with MIME type
"application/javascript" as "application_javascript". Is there some valid
reason for this?

This leads to the following warnings in the report:
"MIME type: application/javascript, detected: application_javascript,
charset: -"

The following fragment of mime.c is responsible:

          else if (!strcasecmp(r->mime_type,"application/javascript"))
            r->sniffed_mime = "application_javascript";

Original issue reported on code.google.com by adambyrtek on 18 Sep 2009 at 1:29

GoogleCodeExporter commented 9 years ago
Oops, indeed. Looks like a typo, my bad. 

Original comment by lcam...@gmail.com on 6 Oct 2009 at 7:51