dgaudet 98/03/16 00:53:30
Modified: src/main http_protocol.c src/include httpd.h Log: draft-ietf-http-v11-spec-rev-03.txt, section 3.6: A server which receives an entity-body with a transfer-coding it does not understand SHOULD return 501 (Unimplemented), and close the connection. Revision Changes Path 1.198 +1 -1 apache-1.3/src/main/http_protocol.c Index: http_protocol.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/main/http_protocol.c,v retrieving revision 1.197 retrieving revision 1.198 diff -u -r1.197 -r1.198 --- http_protocol.c 1998/03/14 00:03:38 1.197 +++ http_protocol.c 1998/03/16 08:53:26 1.198 @@ -1323,7 +1323,7 @@ if (strcasecmp(tenc, "chunked")) { aplog_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r->server, "Unknown Transfer-Encoding %s", tenc); - return HTTP_BAD_REQUEST; + return HTTP_NOT_IMPLEMENTED; } if (r->read_body == REQUEST_CHUNKED_ERROR) { aplog_error(APLOG_MARK, APLOG_NOERRNO|APLOG_ERR, r->server, 1.198 +2 -1 apache-1.3/src/include/httpd.h Index: httpd.h =================================================================== RCS file: /export/home/cvs/apache-1.3/src/include/httpd.h,v retrieving revision 1.197 retrieving revision 1.198 diff -u -r1.197 -r1.198 --- httpd.h 1998/03/12 10:28:55 1.197 +++ httpd.h 1998/03/16 08:53:29 1.198 @@ -460,7 +460,8 @@ ((x) == HTTP_REQUEST_ENTITY_TOO_LARGE) || \ ((x) == HTTP_REQUEST_URI_TOO_LARGE) || \ ((x) == HTTP_INTERNAL_SERVER_ERROR) || \ - ((x) == HTTP_SERVICE_UNAVAILABLE)) + ((x) == HTTP_SERVICE_UNAVAILABLE) || \ + ((x) == HTTP_NOT_IMPLEMENTED)) #define METHODS 8