View | Details | Raw Unified | Return to bug 62456
Collapse All | Expand All

(-)server/protocol.c (-9 / +9 lines)
Lines 823-860 Link Here
823
     */
823
     */
824
    if (deferred_error != rrl_none) {
824
    if (deferred_error != rrl_none) {
825
        if (deferred_error == rrl_badmethod)
825
        if (deferred_error == rrl_badmethod)
826
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03445)
826
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03445)
827
                          "HTTP Request Line; Invalid method token: '%.*s'",
827
                          "HTTP Request Line; Invalid method token: '%.*s'",
828
                          field_name_len(r->method), r->method);
828
                          field_name_len(r->method), r->method);
829
        else if (deferred_error == rrl_badmethod09)
829
        else if (deferred_error == rrl_badmethod09)
830
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03444)
830
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03444)
831
                          "HTTP Request Line; Invalid method token: '%.*s'"
831
                          "HTTP Request Line; Invalid method token: '%.*s'"
832
                          " (only GET is allowed for HTTP/0.9 requests)",
832
                          " (only GET is allowed for HTTP/0.9 requests)",
833
                          field_name_len(r->method), r->method);
833
                          field_name_len(r->method), r->method);
834
        else if (deferred_error == rrl_missinguri)
834
        else if (deferred_error == rrl_missinguri)
835
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03446)
835
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03446)
836
                          "HTTP Request Line; Missing URI");
836
                          "HTTP Request Line; Missing URI");
837
        else if (deferred_error == rrl_baduri)
837
        else if (deferred_error == rrl_baduri)
838
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03454)
838
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03454)
839
                          "HTTP Request Line; URI incorrectly encoded: '%.*s'",
839
                          "HTTP Request Line; URI incorrectly encoded: '%.*s'",
840
                          field_name_len(r->uri), r->uri);
840
                          field_name_len(r->uri), r->uri);
841
        else if (deferred_error == rrl_badwhitespace)
841
        else if (deferred_error == rrl_badwhitespace)
842
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03447)
842
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03447)
843
                          "HTTP Request Line; Invalid whitespace");
843
                          "HTTP Request Line; Invalid whitespace");
844
        else if (deferred_error == rrl_excesswhitespace)
844
        else if (deferred_error == rrl_excesswhitespace)
845
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03448)
845
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03448)
846
                          "HTTP Request Line; Excess whitespace "
846
                          "HTTP Request Line; Excess whitespace "
847
                          "(disallowed by HttpProtocolOptions Strict");
847
                          "(disallowed by HttpProtocolOptions Strict");
848
        else if (deferred_error == rrl_trailingtext)
848
        else if (deferred_error == rrl_trailingtext)
849
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(03449)
849
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(03449)
850
                          "HTTP Request Line; Extraneous text found '%.*s' "
850
                          "HTTP Request Line; Extraneous text found '%.*s' "
851
                          "(perhaps whitespace was injected?)",
851
                          "(perhaps whitespace was injected?)",
852
                          field_name_len(ll), ll);
852
                          field_name_len(ll), ll);
853
        else if (deferred_error == rrl_reject09)
853
        else if (deferred_error == rrl_reject09)
854
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02401)
854
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(02401)
855
                          "HTTP Request Line; Rejected HTTP/0.9 request");
855
                          "HTTP Request Line; Rejected HTTP/0.9 request");
856
        else if (deferred_error == rrl_badprotocol)
856
        else if (deferred_error == rrl_badprotocol)
857
            ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO(02418)
857
            ap_log_rerror(APLOG_MARK, APLOG_INFO, 0, r, APLOGNO(02418)
858
                          "HTTP Request Line; Unrecognized protocol '%.*s' "
858
                          "HTTP Request Line; Unrecognized protocol '%.*s' "
859
                          "(perhaps whitespace was injected?)",
859
                          "(perhaps whitespace was injected?)",
860
                          field_name_len(r->protocol), r->protocol);
860
                          field_name_len(r->protocol), r->protocol);

Return to bug 62456