Skip to content

Commit d665fda

Browse files
committed
test: add space after status code in HTTP responses; see curl/curl#16692
thanks @charles2910 and @bagder; bump to 2.1.1dev Signed-off-by: Hans Zandbelt <hans.zandbelt@openidc.com>
1 parent e9f7e92 commit d665fda

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

ChangeLog

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
03/13/2025
2+
- test: add a space after the status code in the HTTP responses; see curl/curl#16692 ; thanks @charles2910 and @bagder
3+
- bump to 2.1.1dev
4+
15
02/12/2025
26
- add updated AWS ALB JWKs retrieval supporting new "signer"/"region" logic and key rotation
37
closes: https://github.com/OpenIDC/mod_oauth2/issues/73

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([liboauth2],[2.1.0],[hans.zandbelt@openidc.com])
1+
AC_INIT([liboauth2],[2.1.1dev],[hans.zandbelt@openidc.com])
22

33
AM_INIT_AUTOMAKE([foreign no-define subdir-objects])
44
AC_CONFIG_MACRO_DIR([m4])

test/check_liboauth2.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void http_server_error(oauth2_log_t *log, int type, int socket_fd)
6868
else if (type == 406)
6969
status = "406 Not Acceptable";
7070

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",
7272
status);
7373

7474
rc = write(socket_fd, buf, strlen(buf));
@@ -203,7 +203,7 @@ static void http_server_process(oauth2_log_t *log, int fd, int hit)
203203

204204
if (response) {
205205
sprintf(outbuf,
206-
"HTTP/1.1 200\nContent-Length: "
206+
"HTTP/1.1 200 \nContent-Length: "
207207
"%zu\nConnection: close\n\n",
208208
strlen(response));
209209
rc = write(fd, outbuf, strlen(outbuf));
@@ -222,7 +222,7 @@ static void http_server_process(oauth2_log_t *log, int fd, int hit)
222222
len = (long)lseek(file_fd, (off_t)0, SEEK_END);
223223
(void)lseek(file_fd, (off_t)0, SEEK_SET);
224224
(void)sprintf(buffer,
225-
"HTTP/1.1 200 OK\nServer: "
225+
"HTTP/1.1 200 OK \nServer: "
226226
"libmodauth2/1.0\nContent-Length: "
227227
"%ld\nConnection: close\nContent-Type: %s\n\n",
228228
len, fstr);

0 commit comments

Comments
 (0)