Closed (fixed)
Project:
tracdelight
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
3 Mar 2016 at 09:54 UTC
Updated:
22 Apr 2016 at 16:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
stefan freudenberg commentedComment #3
stefan freudenberg commentedComment #4
stefan freudenberg commentedThe attached patch addresses the above mentioned issue by saving the file with the extension corresponding to the content-type-header sent by tracdelight. It also removes an extraneous content-type-header from the GET request for fetching the images. The content-type-header refers to the entity sent with the request, not the desired format of the response. Please see https://tools.ietf.org/html/rfc2616#section-14.17 and https://tools.ietf.org/html/rfc2616#section-14.1.
Comment #5
stefan freudenberg commentedComment #6
chr.fritschThanks for your work. You are right, we should fetch images independent of its file extension. But what about gifs and bmp or anything else? We should make this generic for all types.
Maybe should just check if content-type starts with 'image/' and the exclude the second part for the file extension?
Comment #7
chr.fritschThanks for that patch
Comment #9
drummCorrecting issue status, see #2698635: Issue statuses changing by themselves?.