@@ -68,7 +68,7 @@ static void http_server_error(oauth2_log_t *log, int type, int socket_fd)
68
68
else if (type == 406 )
69
69
status = "406 Not Acceptable" ;
70
70
71
- sprintf (buf , "HTTP/1.1 %s\nContent-Length: 0\nConnection: close\n\n" ,
71
+ sprintf (buf , "HTTP/1.1 %s \nContent-Length: 0\nConnection: close\n\n" ,
72
72
status );
73
73
74
74
rc = write (socket_fd , buf , strlen (buf ));
@@ -203,7 +203,7 @@ static void http_server_process(oauth2_log_t *log, int fd, int hit)
203
203
204
204
if (response ) {
205
205
sprintf (outbuf ,
206
- "HTTP/1.1 200\nContent-Length: "
206
+ "HTTP/1.1 200 \nContent-Length: "
207
207
"%zu\nConnection: close\n\n" ,
208
208
strlen (response ));
209
209
rc = write (fd , outbuf , strlen (outbuf ));
@@ -222,7 +222,7 @@ static void http_server_process(oauth2_log_t *log, int fd, int hit)
222
222
len = (long )lseek (file_fd , (off_t )0 , SEEK_END );
223
223
(void )lseek (file_fd , (off_t )0 , SEEK_SET );
224
224
(void )sprintf (buffer ,
225
- "HTTP/1.1 200 OK\nServer: "
225
+ "HTTP/1.1 200 OK \nServer: "
226
226
"libmodauth2/1.0\nContent-Length: "
227
227
"%ld\nConnection: close\nContent-Type: %s\n\n" ,
228
228
len , fstr );
0 commit comments