Changeset 0a12ff8 in mod_gnutls


Ignore:
Timestamp:
Dec 22, 2016, 4:10:07 PM (12 months ago)
Author:
Thomas Klute <thomas2.klute@…>
Branches:
master, debian, upstream
Children:
10d9053
Parents:
154db29
Message:

Test suite: Ensure CRLF line ends in HTTP headers

Debian Sid updated Apache from 2.4.23 to 2.4.25 yesterday, and 2.4.24
introduces stricter checks for the request syntax described in RFC

  1. This breaks test cases where the request input file did not

contain CRLF line ends. Fix by forcing CRLF line ends when sending
requests in the runtest script.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/runtests

    r94cb972 r0a12ff8  
    208208# case to proceed instead of waiting for it to return. The sleep
    209209# process is stopped after gnutls-cli terminates.
    210 if (sed "s/__HOSTNAME__/${TEST_HOST}/" <${t}/input && \
     210#
     211# The line end manipulation in sed guarantees that all header lines
     212# end with CRLF as required by RFC 7230, Section 3.1.1 regardless of
     213# the line ends in the input file.
     214if (sed -r "s/__HOSTNAME__/${TEST_HOST}/;s/\r?$/\r/" <${t}/input && \
    211215           run_with_pidfile "${sleep_pidfile}" sleep "${TEST_QUERY_DELAY}" &) | \
    212216       gnutls-cli -p "${TEST_PORT}" $(cat ${t}/gnutls-cli.args) "${TEST_HOST}" \
Note: See TracChangeset for help on using the changeset viewer.