Check-in [daacc139a5]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Always report the content-type charset as utf-8. Ticket [cc6557cfc5763fa80bb04eecea7f713b0751efc4]
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: daacc139a50e09a6191085e364f6c8e61228eece
User & Date: drh 2009-02-01 12:23:53.000
References
2011-09-09
22:25 Fixed ticket [cc6557cfc5]: Unicode support plus 2 other changes artifact: 997f22cfb5 user: dmitry
2009-03-15
13:36 Ticket [d67855cceb] css files served as application/x-fossil-artifact not text/css status still Open with 2 other changes artifact: 926e4a9a4c user: eric
Context
2009-02-09
04:41
'fossil' encode tagnames for manifest (for ticket 15f49be6b2b1e) (allows for tags with spaces in name) check-in: 8be6204607 user: bharder tags: trunk
2009-02-01
12:23
Always report the content-type charset as utf-8. Ticket [cc6557cfc5763fa80bb04eecea7f713b0751efc4] check-in: daacc139a5 user: drh tags: trunk
2009-01-30
02:26
Fix errors in the mimetype-generator table for documentation files. check-in: 23e96cf795 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
    if( zDate[0] ) free( zDate );
  }

  /* Content intended for logged in users should only be cached in
  ** the browser, not some shared location.
  */
  fprintf(g.httpOut, "Cache-control: private\r\n");

#if FOSSIL_I18N
  fprintf(g.httpOut,
     "Content-Type: %s; charset=%s\r\n", zContentType, nl_langinfo(CODESET));
#else
  fprintf(g.httpOut,
     "Content-Type: %s; charset=ISO-8859-1\r\n", zContentType);
#endif
  if( strcmp(zContentType,"application/x-fossil")==0 ){
    cgi_combine_header_and_body();
    blob_compress(&cgiContent[0], &cgiContent[0]);
  }

  if( iReplyStatus != 304 ) {
    total_size = blob_size(&cgiContent[0]) + blob_size(&cgiContent[1]);







<
<
|
<
<
<
<
<







319
320
321
322
323
324
325


326





327
328
329
330
331
332
333
    if( zDate[0] ) free( zDate );
  }

  /* Content intended for logged in users should only be cached in
  ** the browser, not some shared location.
  */
  fprintf(g.httpOut, "Cache-control: private\r\n");


  fprintf(g.httpOut, "Content-Type: %s; charset=utf-8\r\n", zContentType);





  if( strcmp(zContentType,"application/x-fossil")==0 ){
    cgi_combine_header_and_body();
    blob_compress(&cgiContent[0], &cgiContent[0]);
  }

  if( iReplyStatus != 304 ) {
    total_size = blob_size(&cgiContent[0]) + blob_size(&cgiContent[1]);