Skip to content

Commit a16ff8f

Browse files
author
Qichao
committed
fix a http division normal and abnormal bug
1 parent 8861295 commit a16ff8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

uws_http.c

+1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ printfile(const char *path, pConnInfo conn_info)
146146
int
147147
http_router(pConnInfo conn_info)
148148
{
149+
if(conn_info->status_code != 0) send_error_response(conn_info);
149150
int sockfd = conn_info->clientfd;
150151
char path[PATH_LEN];
151152
struct stat stat_buff;

0 commit comments

Comments
 (0)