~ubuntu-branches/ubuntu/hardy/lighttpd/hardy

« back to all changes in this revision

Viewing changes to src/mod_ssi.c

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2007-09-05 09:30:15 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070905093015-pm98jekbu9ylcd3w
Tags: 1.4.17-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Update maintainer field in debian/control.
  - Build against libgamin-dev rather than libfam-dev (fixes a warning
    during startup)
  - Make sure that upgrades succeed, even if we can't restart lighttpd.
  - Clean environment in init.d script.

Show diffs side-by-side

added added

removed removed

Lines of Context:
225
225
                     );
226
226
        ssi_env_add(p->ssi_cgi_env, CONST_STRING("GATEWAY_INTERFACE"), "CGI/1.1");
227
227
 
228
 
        ltostr(buf,
 
228
        LI_ltostr(buf,
229
229
#ifdef HAVE_IPV6
230
230
               ntohs(srv_sock->addr.plain.sa_family ? srv_sock->addr.ipv6.sin6_port : srv_sock->addr.ipv4.sin_port)
231
231
#else
247
247
                /* CGI-SPEC 6.1.2 and FastCGI spec 6.3 */
248
248
 
249
249
                /* request.content_length < SSIZE_MAX, see request.c */
250
 
                ltostr(buf, con->request.content_length);
 
250
                LI_ltostr(buf, con->request.content_length);
251
251
                ssi_env_add(p->ssi_cgi_env, CONST_STRING("CONTENT_LENGTH"), buf);
252
252
        }
253
253