765 |
"Cannot create inputstream"); |
"Cannot create inputstream"); |
766 |
return NULL; |
return NULL; |
767 |
|
|
768 |
|
} else { |
769 |
|
setvbuf(in, NULL, _IONBF, 0); |
770 |
} |
} |
771 |
|
|
772 |
if(fgets(line, sizeof(line), in) == NULL) { |
if(fgets(line, sizeof(line), in) == NULL) { |
844 |
if(! Run.httpdssl) { |
if(! Run.httpdssl) { |
845 |
|
|
846 |
out = fdopen(dup(W->socket), "w"); |
out = fdopen(dup(W->socket), "w"); |
|
|
|
847 |
if(out == NULL) { |
if(out == NULL) { |
848 |
|
|
849 |
internal_error(W->socket, SC_INTERNAL_SERVER_ERROR, |
internal_error(W->socket, SC_INTERNAL_SERVER_ERROR, |
850 |
"Cannot create outputstream"); |
"Cannot create outputstream"); |
851 |
|
|
852 |
return NULL; |
return NULL; |
853 |
|
} else { |
854 |
|
setvbuf(out, NULL, _IONBF, 0); |
855 |
} |
} |
856 |
|
|
857 |
} |
} |