]> bicyclesonthemoon.info Git - ott/enhance/blobdiff - online-core.c
Fully working online interface; for now bluenh only.
[ott/enhance] / online-core.c
index fa41b32e4eb44a35e31eddb3628337011e448131..92822c9e94715f9594b45fa429faa3ec7d4561cd 100644 (file)
@@ -168,7 +168,7 @@ int send_file (char *path, char *content_type, unsigned status)
        if (status != 0)
                fprintf(stdout, "Status: %u\n", status);
        if (content_type!=NULL)
-               fprintf(stdout, "Content-type: %s", content_type);
+               fprintf(stdout, "Content-type: %s\n", content_type);
        fprintf(stdout, "Content-Length: %" PRId64 "\n\n", size);
        
        while (size>0)
@@ -200,7 +200,7 @@ int send_data (const uint8_t *address, size_t size, char *content_type, unsigned
        if (status != 0)
                fprintf(stdout, "Status: %u\n", status);
        if (content_type!=NULL)
-               fprintf(stdout, "Content-type: %s", content_type);
+               fprintf(stdout, "Content-type: %s\n", content_type);
        fprintf(stdout, "Content-Length: %" PRId64 "\n\n", (uint64_t)size);
        
        off = 0;