Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate response headers for pipelined response #79

Open
kritikagarg opened this issue Dec 6, 2019 · 2 comments
Open

Duplicate response headers for pipelined response #79

kritikagarg opened this issue Dec 6, 2019 · 2 comments
Labels
Question Need some information Resolved The issue is resolved or got answered

Comments

@kritikagarg
Copy link
Contributor

While running test cases test_protected_options_trace_full_method_support and test_delete_verify in A5, an unexpected output is showing up. The 1st response of all the pipelined response is showing duplicate headers.

< HTTP/1.1 200 OK
< Date: Fri, 06 Dec 2019 06:54:45 GMT
< Server: kitkat.2.0
< Transfer-Encoding: chunked
< 
< HTTP/1.1 200 OK
< Date: Fri, 06 Dec 2019 06:54:45 GMT
< Server: kitkat.2.0
< Transfer-Encoding: chunked
< 
10
<html>
<body>

21
<h1>File deleted.</h1>
</body>
0

HTTP/1.1 404 Not Found
Date: Fri, 06 Dec 2019 06:54:45 GMT
Server: kitkat.2.0
Content-Type: text/html
Connection: close
Transfer-Encoding: chunked

17
<!DOCTYPE HTML>
<HTML>

25
<HEAD>
	<TITLE>404 Not Found</TITLE>

f
</HEAD>
<BODY>

22
	<H1>404</H1>
	<H2>Not Found</H2>

e
	----
</BODY>

9
</HTML>

0

This pattern is showing in pipelined DELETE and OPTIONS requests.
The problem does not occur on sending a request through netcat.

HTTP/1.1 200 OK
Date: Fri, 06 Dec 2019 07:59:48 GMT
Server: kitkat.2.0
Transfer-Encoding: chunked

10
<html>
<body>

21
<h1>File deleted.</h1>
</body>
0

HTTP/1.1 404 Not Found
Date: Fri, 06 Dec 2019 07:59:48 GMT
Server: kitkat.2.0
Content-Type: text/html
Connection: close
Transfer-Encoding: chunked

17
<!DOCTYPE HTML>
<HTML>

25
<HEAD>
	<TITLE>404 Not Found</TITLE>

f
</HEAD>
<BODY>

22
	<H1>404</H1>
	<H2>Not Found</H2>

e
	----
</BODY>

9
</HTML>

0
@ibnesayeed ibnesayeed added the Question Need some information label Dec 6, 2019
@himarshaj
Copy link
Contributor

Hello,
I am facing the exact same issue. I was thinking that it is a problem with the pipe-lining at my end.

@ibnesayeed
Copy link
Collaborator

@kritikagarg your chunked encoding seems wrong in accurately treating new lines of the payload.

@ibnesayeed ibnesayeed added the Resolved The issue is resolved or got answered label Dec 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Need some information Resolved The issue is resolved or got answered
Projects
None yet
Development

No branches or pull requests

3 participants