Skip to content

Commit 62bfa40

Browse files
committed
fix(sample-app): add connection header to response in python-schema-match
1 parent 34f963f commit 62bfa40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python-schema-match/app-test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def handle_request(client_socket):
127127
else:
128128
body = json.dumps(body_data)
129129

130-
response = f"HTTP/1.0 200 OK\r\nContent-Type: application/json\r\nContent-Length: {len(body)}\r\n\r\n{body}"
130+
response = f"HTTP/1.0 200 OK\r\nContent-Type: application/json\r\nContent-Length: {len(body)}\r\nConnection: close\r\n\r\n{body}"
131131
client_socket.sendall(response.encode('utf-8'))
132132

133133
except Exception as e:

0 commit comments

Comments
 (0)