view diff is broken?


Re: view diff is broken?
#8
Chris, I think the solution is very simple.
You just need to make sure that the HTTP header sent in the response from the server states the proper MIME type for LDRAW files. The element you need to send back to the client is
the "Content-Type" field in the HTTP response header.
The user can then associate a tool with that MIME type.
As "LDRAW" is of course not part of the official MIME standard, we need to use the "x-" prefix for unofficial file types.
Probably
application/x-ldraw
or
model/x-ldraw
would be something good IMHO.
Alternatively, you could make the URL "appear" as an *.ldr file (instead of *.cgi), so users might,
alternatively to the MIME type, use their normal file associations for opening the result file.
Since the result - as far as I can see - is a mix of both the old and the new version of the file,
probably either *.mpd or *.ldr would be a good file extension to pick; not *.dat
Reply
« Next Oldest | Next Newest »



Messages In This Thread
view diff is broken? - by Matthew W. Noel - 2012-11-12, 23:00
Re: view diff is broken? - by Steffen - 2012-11-12, 23:41
Re: view diff is broken? - by Chris Dee - 2012-11-13, 6:49
Re: view diff is broken? - by Steffen - 2012-11-14, 21:09
Re: view diff is broken? - by Chris Dee - 2012-11-14, 22:48
Re: view diff is broken? - by Chris Dee - 2012-11-14, 23:15
Re: view diff is broken? - by Steffen - 2012-11-15, 0:43
Re: view diff is broken? - by Steffen - 2012-11-17, 1:06

Forum Jump:


Users browsing this thread: 1 Guest(s)