Skip to content

Commit

Permalink
try sending FIN
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoby committed Oct 2, 2024
1 parent c62242d commit 535eed3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions library/oidc.c
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,11 @@ static void ext_accept(uv_work_t *wr) {

char resp_body[] = "<script type=\"text/javascript\">window.close()</script>"
"<body onload=\"window.close()\">You may close this window</body>";
#define RESP_FMT "HTTP/1.1 200 OK\r\n"\
"Content-Type: text/html\r\n"\
"Content-Length: %zd\r\n"\
"\r\n%s"
#define RESP_FMT "HTTP/1.0 200 OK\r\n"\
"Connection: close\r\n"\
"Content-Type: text/html\r\n"\
"Content-Length: %zd\r\n"\
"\r\n%s"
string_buf_fmt(&resp_buf, RESP_FMT, strlen(resp_body), resp_body);
size_t resp_len;
char *resp = string_buf_to_string(&resp_buf, &resp_len);
Expand Down

0 comments on commit 535eed3

Please sign in to comment.