The extension is far from irrelevant. FireFox isn't looking at that it's checking the mime type.
Either change the type associated with .txt on the system if it's local file:// access (Registry on Windows) or send the appropriate HTTP header.
EDITED: 24 Mar 2008 14:12 by MATT