Browse Source

Stray line feed in fqdname causes --add-header and --add-header-file header records to be ignored by server.

ahc_fix_select^2
Stephen Jazdzewski 9 years ago
committed by Stephen Jazdzewski
parent
commit
feca4978ba
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/conn.c

+ 1
- 0
src/conn.c View File

@@ -112,6 +112,7 @@ conn_init(Conn *conn)
conn->sd = -1;
conn->myport = -1;
conn->line.iov_base = conn->line_buf;
conn->fqdname_len = strcspn(conn->fqdname,"\r\n"); // Chomp since used in Host header record

#ifdef HAVE_SSL
if (param.use_ssl) {


Loading…
Cancel
Save