Re: [PATCH] Location header recovering to absoluteURI

Martin Conte Mac Donell <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
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?

M
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.