We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400e036 commit 1f1b69eCopy full SHA for 1f1b69e
util/http/http_methods.c
@@ -18,8 +18,7 @@ void http_write_response(
18
fprintf(stream, "Content-Type: %s\r\n", content_type ? content_type : "text/plain");
19
if (content_length > 0)
20
fprintf(stream, "Content-Length: %d\r\n", content_length);
21
- if (!status || strstr(status, "200 OK") == status)
22
- fprintf(stream, "Access-Control-Allow-Origin: *\r\n");
+ fprintf(stream, "Access-Control-Allow-Origin: *\r\n");
23
fprintf(stream, "\r\n");
24
if (body) {
25
fwrite(body, 1, content_length, stream);
0 commit comments