~britco/nginx/master

« back to all changes in this revision

Viewing changes to src/http/modules/ngx_http_range_filter_module.c

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry, Kartik Mistry, Michael Lustfield
  • Date: 2010-11-27 21:04:02 UTC
  • mfrom: (1.3.8 upstream)
  • mto: This revision was merged to the branch mainline in revision 36.
  • Revision ID: james.westby@ubuntu.com-20101127210402-14sgjpe6r3jup8a9
Tags: 0.8.53-1
[Kartik Mistry]
* debian/control:
  + Added Michael Lustfield as co-maintainer
* nginx.conf:
  + No need to use regex in gzip_disable for msie6, Thanks to António P. P.
    Almeida <appa@perusio.net> (Closes: #592147)
* conf/sites-available/default:
  + Fixed typo for "include fastcgi", Thanks to Mostafa Ghadamyari
    <nginx@gigfa.com> (Closes: #593142, #593143)
* debian/patches/fix_reloading_ipv6.diff:
  + Removed, merged upstream
* debian/init.d:
  + Added fix to control nginx by user in a simple way by setting DAEMON
    variable to an invalid name in /etc/default/nginx. Patch by Toni Mueller
    <support@oeko.net> (Closes: #594598)
* debian/NEWS.Debian:
  + Updated news for 0.8.x as stable branch

[Michael Lustfield]
* New upstream release (Closes: #602970)
  + 0.8.x branch is declared stable by upstream now
* Add a UFW profile set:
  + debian/nginx.ufw.profile: Added.
  + debian/control: nginx: Suggests ufw.
  + debian/dirs: Add 'etc/ufw/applications.d'
  + debian/rules: Add install rule for the nginx UFW profile.
* Moved debian/dirs to debian/nginx.dirs
* Added types_hash_max_size to nginx.conf
* Install simple default index.html file (Closes: #581416)
  + debian/dirs: Add 'usr/share/nginx/www'.
  + debian/nginx.install: Add 'html/* usr/share/nginx/www'.
* debian/patches/nginx-echo.diff:
  + Added Echo module
* Added files for nginx.docs
  - /usr/share/doc/nginx/
    + debian/help/docs/fcgiwrap
    + debian/help/docs/php
    + debian/help/docs/support-irc
    + debian/help/docs/upstream
* Added files for nginx.examples
  - /usr/share/doc/nginx/examples/
    + debian/help/docs/drupal
    + debian/help/docs/http
    + debian/help/docs/mail
    + debian/help/docs/mailman
    + debian/help/docs/nginx.conf
    + debian/help/docs/virtual_hosts
    + debian/help/docs/wordpress
* debian/conf/:
  + Removed excess spaces
  + Added tabs where appropriate
  + Added SCRIPT_FILENAME to fastcgi_params

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
    }
225
225
 
226
226
    r->headers_out.accept_ranges->hash = 1;
227
 
    r->headers_out.accept_ranges->key.len = sizeof("Accept-Ranges") - 1;
228
 
    r->headers_out.accept_ranges->key.data = (u_char *) "Accept-Ranges";
229
 
    r->headers_out.accept_ranges->value.len = sizeof("bytes") - 1;
230
 
    r->headers_out.accept_ranges->value.data = (u_char *) "bytes";
 
227
    ngx_str_set(&r->headers_out.accept_ranges->key, "Accept-Ranges");
 
228
    ngx_str_set(&r->headers_out.accept_ranges->value, "bytes");
231
229
 
232
230
    return ngx_http_next_header_filter(r);
233
231
}
355
353
    r->headers_out.content_range = content_range;
356
354
 
357
355
    content_range->hash = 1;
358
 
    content_range->key.len = sizeof("Content-Range") - 1;
359
 
    content_range->key.data = (u_char *) "Content-Range";
 
356
    ngx_str_set(&content_range->key, "Content-Range");
360
357
 
361
358
    content_range->value.data = ngx_pnalloc(r->pool,
362
359
                                    sizeof("bytes -/") - 1 + 3 * NGX_OFF_T_LEN);
520
517
    r->headers_out.content_range = content_range;
521
518
 
522
519
    content_range->hash = 1;
523
 
    content_range->key.len = sizeof("Content-Range") - 1;
524
 
    content_range->key.data = (u_char *) "Content-Range";
 
520
    ngx_str_set(&content_range->key, "Content-Range");
525
521
 
526
522
    content_range->value.data = ngx_pnalloc(r->pool,
527
523
                                       sizeof("bytes */") - 1 + NGX_OFF_T_LEN);