Re: [PATCH] Location header recovering to absoluteURI

Stipe Tolj <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Organization tolj.org system architecture
Message-ID <[email protected]>
Martin Conte Mac Donell schrieb:
> On 1/25/09, Stipe Tolj <[email protected]> wrote:
>>  Which means if the "previous" call was 'https://foobar:80/xyz', and we get
>>  '/abc' as Location response (HTTP 302), we would still set in the
>>  recover_absolute_uri() function: 'https://foobar:80/abc'.
> 
> Maybe i'm missing something but if your call is "https://foobar:80/xyz
> and you get '/abc', if you go between
> 
> +        if (trans->port != 80) {
> +            octstr_format_append(os, ":%ld", trans->port);
> +        }
> 
> Then you will be redirect to https://foobar/abc.
> 
> Am i missing something?

nop, you're right. Need to change. Thanks Martin.

Stipe

-- 
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.