]> granicus.if.org Git - apache/commit
Add directives to control two protocol options:
authorJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 30 Dec 2013 20:01:14 +0000 (20:01 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Mon, 30 Dec 2013 20:01:14 +0000 (20:01 +0000)
commit93143eb07b685c6104c6f0169e6f040a60b99e2f
treeb3aef862d6de574499e5bba822f736fc4acf6021
parent5527717d5b5ddadb345ed3e18664384b43d55ecc
Add directives to control two protocol options:

 HttpContentLengthHeadZero - allow Content-Length of 0 to be returned on HEAD
 HttpExpectStrict - allow admin to control whether we must see "100-continue"

This is helpful when using Ceph's radosgw and httpd.

Inspired by: Yehuda Sadeh <yehuda@inktank.com>
See https://github.com/ceph/apache2/commits/precise

* include/http_core.h
  (core_server_config): Add http_cl_head_zero and http_expect_strict fields.
* modules/http/http_filters.c
  (ap_http_header_filter): Only clear out the C-L if http_cl_head_zero is not
  explictly set.
* server/core.c
  (merge_core_server_configs): Add new fields.
  (set_cl_head_zero, set_expect_strict): New config helpers.
  (HttpContentLengthHeadZero, HttpExpectStrict): Declare new directives.
* server/protocol.c
  (ap_read_request): Allow http_expect_strict to control if we return 417.
* include/ap_mmn.h
  (MODULE_MAGIC_NUMBER_MAJOR, MODULE_MAGIC_NUMBER_MINOR): Bump.
* CHANGES: Add a brief description.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1554303 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
include/ap_mmn.h
include/http_core.h
modules/http/http_filters.c
server/core.c
server/protocol.c