troelskn / konstrukt

A HTTP-friendly framework of controllers for PHP5.
http://konstrukt.dk/
Other
99 stars 14 forks source link

duplicate content type handler for text/x-vcard #20

Closed phluid61 closed 8 years ago

phluid61 commented 12 years ago

In lib/konstrukt/response.inc.php the array $GLOBALS['konstrukt_content_types'] has duplicate entries for key 'text/x-vcard':

#line 17
  'text/x-vcard'  => 'vcard',
#...
#line 29
  'text/x-vcard' => 'vcf'

Pulled 2012-08-08.

lsolesen commented 8 years ago

@phluid61 Do you know which one is correct?

troelskn commented 8 years ago

Looks like it should be the latter, since there is a k_VcfResponse and no k_VcardResponse. That would also preserve current behaviour, as last key will override the prior.

phluid61 commented 8 years ago

Yeah, I'm about 4 years out of touch, but I'd go with @troelskn's suggestion.