GNOME Bugzilla – Bug 349199
Shouldn't only rely on the Content-type header when reading from HTTP.
Last modified: 2009-08-19 15:16:31 UTC
Not sure it belongs to gedit, but I think we shouldn't only rely on the HTTP header "Content-type" while opening a file from a remote HTTP server. This is problematic because code files are often sent as text/plain, no matter what their actual mime-type is. (and some servers interpret files being declared as python or php or perl, so sending them with right mime-type might be difficult). This causes gedit usually not to highlight the file when opened from HTTP (from a svn server or so) For instance, try opening https://svn.tinymail.org/svn/tinymail/trunk/libtinymail/tny-list-iface.h and notice there is no syntax highlighting.
This now works, either because gvfs is smarted than gnome-vfs or because we fallback to using the filename... eitherway it works :)