Roxen.git / server / base_server / prototypes.pike

version» Context lines:

Roxen.git/server/base_server/prototypes.pike:2441:    if (misc->forwarded) {    got_both:    foreach(misc->forwarded, array(int|string) entry) {    foreach(entry/ ({ ';' }), array(int|string) forwarded_pair) {    if ((sizeof(forwarded_pair) != 3) ||    (forwarded_pair[1] != '=') ||    !stringp(forwarded_pair[0]) ||    !stringp(forwarded_pair[2])) continue;    switch(lower_case(forwarded_pair[0])) {    case "proto": +  if (scheme) continue;    scheme = lower_case(forwarded_pair[2]);    if (host) break got_both;    break;    case "host": -  +  if (host) continue;    host = forwarded_pair[2];    if (scheme) break got_both;    break;    }    }    }    }       // Second look at the host header in the request.    if (!host) {