Bug 188210 - webinterface plugin -- relative http redirects
Summary: webinterface plugin -- relative http redirects
Status: RESOLVED DUPLICATE of bug 188134
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-26 23:20 UTC by Elan Ruusamäe
Modified: 2009-03-27 08:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elan Ruusamäe 2009-03-26 23:20:03 UTC
Version:           3.2.0 (using 4.2.1 (KDE 4.2.1), PLD-Linux)
Compiler:          x86_64-pld-linux-gcc
OS:                Linux (x86_64) release 2.6.27.7-2

please make HTTP 301 Redirects relative, as if they are with leading slash (relative to host root), it makes it hard to proxy connections with mod_proxy. or make it configurable what is the server address if 
it is required in http protocol.

as i'd put to apache config:
    ProxyPass /torrent/ http://localhost:8080/

i'd expect the Location header be relatve to requested url. for example login handler:
    Location: login.html

sniff with firebug:
Request Headers:
Host	localhost:8080
User-Agent	Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.7) Gecko/2009030519 PLD/3.0 Iceweasel/3.0.7
Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	300
Connection	keep-alive
Referer	http://localhost:8080/


Response Headers:
Connection	keep-alive
Content-Length	1555
Content-Type	text/html
Date	Thu, 26 Mar 2009 22:14:14 UTC
Location	/login.html
Server	KTorrent/3.2.0
Comment 1 Joris Guisson 2009-03-27 08:58:41 UTC

*** This bug has been marked as a duplicate of bug 188134 ***