Skip to content

Commit 7d2fcaf

Browse files
committed
fixed http protocol error: abandon space
1 parent 3996722 commit 7d2fcaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ngx_stream_upsync_module.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2471,13 +2471,13 @@ ngx_stream_upsync_send_handler(ngx_event_t *event)
24712471
if (upsync_type_conf->upsync_type == NGX_STREAM_UPSYNC_ETCD) {
24722472
if (upsync_server->index != 0) {
24732473
ngx_sprintf(request, "GET %V?wait=true&recursive=true&waitIndex=%d"
2474-
" HTTP/1.0\r\nHost: %V\r\n Accept: */*\r\n\r\n",
2474+
" HTTP/1.0\r\nHost: %V\r\nAccept: */*\r\n\r\n",
24752475
&upscf->upsync_send, upsync_server->index,
24762476
&upscf->conf_server.name);
24772477

24782478
} else {
24792479
ngx_sprintf(request, "GET %V?"
2480-
" HTTP/1.0\r\nHost: %V\r\n Accept: */*\r\n\r\n",
2480+
" HTTP/1.0\r\nHost: %V\r\nAccept: */*\r\n\r\n",
24812481
&upscf->upsync_send, &upscf->conf_server.name);
24822482

24832483
}

0 commit comments

Comments
 (0)