From 6d7d815ee75e3eb203c39dcd6d36a561bd0fb47b Mon Sep 17 00:00:00 2001 From: lyuxiaosu Date: Mon, 26 Sep 2022 15:28:07 -0400 Subject: [PATCH] remove sending duplicate http response header (#367) --- runtime/include/http_session.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/runtime/include/http_session.h b/runtime/include/http_session.h index fbc1cd0..707d4dd 100644 --- a/runtime/include/http_session.h +++ b/runtime/include/http_session.h @@ -197,8 +197,6 @@ http_session_set_response_header(struct http_session *session, int status_code) rc = fprintf(session->response_header.handle, HTTP_RESPONSE_CONTENT_LENGTH, session->response_body.size); assert(rc > 0); - rc = fputs(HTTP_RESPONSE_200_OK, session->response_header.handle); - assert(rc != EOF); } rc = fputs(HTTP_RESPONSE_TERMINATOR, session->response_header.handle);