Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

Commit

Permalink
Don't forget to receive header frames
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasa committed Jun 13, 2015
1 parent 2aad1bb commit b05c817
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ def socket_handler(listener):
# We're going to get the two messages for the connection open, then
# a headers frame.
receive_preamble(sock)
sock.recv(65535)

# Now, send the headers for the response.
f = build_headers_frame([(':status', '200')])
Expand Down Expand Up @@ -297,6 +298,7 @@ def socket_handler(listener):
# We get two messages for the connection open and then a HEADERS
# frame.
receive_preamble(sock)
sock.recv(65535)

# Now, send the headers for the response. This response has no body.
f = build_headers_frame([(':status', '204'), ('content-length', '0')])
Expand Down Expand Up @@ -339,6 +341,7 @@ def socket_handler(listener):
# We get two messages for the connection open and then a HEADERS
# frame.
receive_preamble(sock)
sock.recv(65535)

# Now, send the headers for the response. This response has no body.
f = build_headers_frame([(':status', '200'), ('content-length', '0')], e)
Expand Down

0 comments on commit b05c817

Please sign in to comment.