Skip to content

Commit 6b7f887

Browse files
committed
Fixes http GET request format string, server responded before with "400 Bad Request".
1 parent e86d9f1 commit 6b7f887

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/https_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ typedef struct http_request_context_ {
6161
} http_request_context_t;
6262

6363

64-
static const char *http_get_request_format_string = "GET %s HTTP/1.1\nHost: %s\n\n";
64+
static const char *http_get_request_format_string = "GET %s HTTP/1.1\r\nHost: %s\r\n\r\n";
6565
static uint32_t request_nr;
6666

6767

0 commit comments

Comments
 (0)