Bug 2216 - bug in redirection (HTTP response tag LOCATION) in asynch http
: bug in redirection (HTTP response tag LOCATION) in asynch http
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Tools
: 6.2.0
: All All
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-09-28 15:36 UTC by dan aronson
Modified: 2008-09-15 14:36 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dan aronson 2005-09-28 15:36:02 UTC
Since the symantics of http response headers are case independant, there is a
bug in SimpleAsyncHTTP.pm at the line:

        if (my $location = ($h{'Location'}) {

One possible bug fix is:

        my $k
        foreach $k (keys(%h))  { $h{lc($k)} = $h{$k};};

        if (my $location = ($h{'location'}) {


One URL that triggers this bug is:
 "http://locator.archive.org/cgi-bin/find_file.cgi?file=tod2005-02-27.flac16"
Comment 1 Dan Sully 2005-09-30 10:57:30 UTC
Fixed in subversion change 4490.