Fossil SCM
Always report the content-type charset as utf-8. Ticket [cc6557cfc5763fa80bb04eecea7f713b0751efc4]
Commit
daacc139a50e09a6191085e364f6c8e61228eece
Parent
23e96cf795d6586…
1 file changed
+1
-8
+1
-8
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -321,18 +321,11 @@ | ||
| 321 | 321 | |
| 322 | 322 | /* Content intended for logged in users should only be cached in |
| 323 | 323 | ** the browser, not some shared location. |
| 324 | 324 | */ |
| 325 | 325 | fprintf(g.httpOut, "Cache-control: private\r\n"); |
| 326 | - | |
| 327 | -#if FOSSIL_I18N | |
| 328 | - fprintf(g.httpOut, | |
| 329 | - "Content-Type: %s; charset=%s\r\n", zContentType, nl_langinfo(CODESET)); | |
| 330 | -#else | |
| 331 | - fprintf(g.httpOut, | |
| 332 | - "Content-Type: %s; charset=ISO-8859-1\r\n", zContentType); | |
| 333 | -#endif | |
| 326 | + fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType); | |
| 334 | 327 | if( strcmp(zContentType,"application/x-fossil")==0 ){ |
| 335 | 328 | cgi_combine_header_and_body(); |
| 336 | 329 | blob_compress(&cgiContent[0], &cgiContent[0]); |
| 337 | 330 | } |
| 338 | 331 | |
| 339 | 332 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -321,18 +321,11 @@ | |
| 321 | |
| 322 | /* Content intended for logged in users should only be cached in |
| 323 | ** the browser, not some shared location. |
| 324 | */ |
| 325 | fprintf(g.httpOut, "Cache-control: private\r\n"); |
| 326 | |
| 327 | #if FOSSIL_I18N |
| 328 | fprintf(g.httpOut, |
| 329 | "Content-Type: %s; charset=%s\r\n", zContentType, nl_langinfo(CODESET)); |
| 330 | #else |
| 331 | fprintf(g.httpOut, |
| 332 | "Content-Type: %s; charset=ISO-8859-1\r\n", zContentType); |
| 333 | #endif |
| 334 | if( strcmp(zContentType,"application/x-fossil")==0 ){ |
| 335 | cgi_combine_header_and_body(); |
| 336 | blob_compress(&cgiContent[0], &cgiContent[0]); |
| 337 | } |
| 338 | |
| 339 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -321,18 +321,11 @@ | |
| 321 | |
| 322 | /* Content intended for logged in users should only be cached in |
| 323 | ** the browser, not some shared location. |
| 324 | */ |
| 325 | fprintf(g.httpOut, "Cache-control: private\r\n"); |
| 326 | fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType); |
| 327 | if( strcmp(zContentType,"application/x-fossil")==0 ){ |
| 328 | cgi_combine_header_and_body(); |
| 329 | blob_compress(&cgiContent[0], &cgiContent[0]); |
| 330 | } |
| 331 | |
| 332 |