Fossil SCM

Remove a redundant comment from the previous checkin. No code changes.

stephan 2024-08-03 19:54 UTC trunk
Commit 4172bcdcea02050c867338d46e0dc9d14667a88d76574be694da8f2d8e122d3a
1 file changed +1 -3
+1 -3
--- src/chat.c
+++ src/chat.c
@@ -1005,13 +1005,11 @@
10051005
** the mimetype text/x-patch, whereas we very often use that
10061006
** name glob for fossil-format patches. That causes such files
10071007
** to attempt to render in the browser when clicked via
10081008
** download links in chat.
10091009
**
1010
- ** The workaround: if a text/... file is looks_like_binary()
1011
- ** then change the mimetype to application/octet-stream.
1012
- */
1010
+ ** The workaround: */
10131011
if( looks_like_binary(&r) ){
10141012
zMime = "application/octet-stream";
10151013
}
10161014
}
10171015
cgi_set_content_type(zMime);
10181016
--- src/chat.c
+++ src/chat.c
@@ -1005,13 +1005,11 @@
1005 ** the mimetype text/x-patch, whereas we very often use that
1006 ** name glob for fossil-format patches. That causes such files
1007 ** to attempt to render in the browser when clicked via
1008 ** download links in chat.
1009 **
1010 ** The workaround: if a text/... file is looks_like_binary()
1011 ** then change the mimetype to application/octet-stream.
1012 */
1013 if( looks_like_binary(&r) ){
1014 zMime = "application/octet-stream";
1015 }
1016 }
1017 cgi_set_content_type(zMime);
1018
--- src/chat.c
+++ src/chat.c
@@ -1005,13 +1005,11 @@
1005 ** the mimetype text/x-patch, whereas we very often use that
1006 ** name glob for fossil-format patches. That causes such files
1007 ** to attempt to render in the browser when clicked via
1008 ** download links in chat.
1009 **
1010 ** The workaround: */
 
 
1011 if( looks_like_binary(&r) ){
1012 zMime = "application/octet-stream";
1013 }
1014 }
1015 cgi_set_content_type(zMime);
1016

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button