Skip to content

Commit

Permalink
write strlen of gif to client
Browse files Browse the repository at this point in the history
  • Loading branch information
sax committed Nov 30, 2012
1 parent c16e7f2 commit fb93277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distrans.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void respond(int socket, int verbose) {
/* Header + a blank line */
(void)sprintf(write_buffer,"HTTP/1.1 200 OK\nServer: distrans/%f\nContent-Length: 26\nConnection: close\nContent-Type: image/gif\n\n", VERSION);
(void)sprintf(write_buffer,"%s", GIF);
(void)write(socket, write_buffer, WRITE_BUFFER);
(void)write(socket, write_buffer, strlen(write_buffer));

sleep(0.001);
implode(socket);
Expand Down

0 comments on commit fb93277

Please sign in to comment.