Browse Source

Use correct line endings in http request.

Ibrahim Tachijian 10 years ago
parent
commit
2ac8a61401
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      tomcast.c

+ 1
- 1
tomcast.c View File

@@ -522,7 +522,7 @@ int connect_source(RESTREAMER *r, int retries, int readbuflen, int *http_code) {
522 522
 			DO_RECONNECT;
523 523
 		}
524 524
 
525
-		snprintf(buf,sizeof(buf)-1, "GET /%s HTTP/1.0\nHost: %s:%u\nX-Smart-Client: yes\nUser-Agent: %s %s (%s)\n\n",
525
+		snprintf(buf,sizeof(buf)-1, "GET /%s HTTP/1.0\r\nHost: %s:%u\r\nX-Smart-Client: yes\r\nUser-Agent: %s %s (%s)\r\n\r\n",
526 526
 		         src->path, src->host, src->port, server_sig, server_ver, ident);
527 527
 		buf[sizeof(buf)-1] = 0;
528 528
 		fdwrite(r->sock, buf, strlen(buf));

Loading…
Cancel
Save