summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@nginx.com>2023-05-22 02:37:01 +0200
committerAlejandro Colomar <alx@nginx.com>2023-05-25 11:27:35 +0200
commit47cdfb6f30f7d56bffb806cc860e20806ea62f50 (patch)
treec76dc3197e9e388b246c98cb6b164c443108506f /test
parent71f8c58f7f4fc7f65d4ef5b6f8d30686ad9fd765 (diff)
downloadunit-47cdfb6f30f7d56bffb806cc860e20806ea62f50.tar.gz
unit-47cdfb6f30f7d56bffb806cc860e20806ea62f50.tar.bz2
Tests: fixed incorrect pointer assignment.
If we don't update the pointer before copying the request body, then we get the behavior shown below. After this patch, "foo\n" is rightly appended at the end of the response body. Request: "GET / HTTP/1.1\r\nHost: _\nContent-Length: 4\n\nfoo\n" Response body: """ Hello world! foo est data: Method: GET Protocol: HTTP/1.1 Remote addr: 127.0.0.1 Local addr: 127.0.0.1 Target: / Path: / Fields: Host: _ Content-Length: 4 Body: """ Fixes: 1bb22d1e922c ("Unit application library.") Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Signed-off-by: Alejandro Colomar <alx@nginx.com>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions