]> granicus.if.org Git - esp-idf/commitdiff
examples: Correct Content-Length in openssl_server example
authorOndřej Hruška <ondra@ondrovo.com>
Tue, 9 Oct 2018 13:01:35 +0000 (15:01 +0200)
committerMahavir Jain <mahavir@espressif.com>
Thu, 8 Nov 2018 10:27:12 +0000 (15:57 +0530)
Before this fix it didn't send all of the response, ending with `</h`

Merges https://github.com/espressif/esp-idf/pull/2535

examples/protocols/openssl_server/main/openssl_server_example_main.c

index c3e0075634f6693f61d79a5951d2c262cce586cd..df3e0f7c0cb00da3ba6c64bf5295d8452ee25307 100644 (file)
@@ -37,7 +37,7 @@ const static char *TAG = "Openssl_example";
 
 #define OPENSSL_EXAMPLE_SERVER_ACK "HTTP/1.1 200 OK\r\n" \
                                 "Content-Type: text/html\r\n" \
-                                "Content-Length: 98\r\n\r\n" \
+                                "Content-Length: 106\r\n\r\n" \
                                 "<html>\r\n" \
                                 "<head>\r\n" \
                                 "<title>OpenSSL example</title></head><body>\r\n" \