~pcherenkov/udpxy/udpxy-github

« back to all changes in this revision

Viewing changes to chipmunk/udpxy.c

  • Committer: Pavel Cherenkov
  • Date: 2013-01-26 15:33:24 UTC
  • Revision ID: git-v1:c667951692455d6e806f36a957f9509e58787060
README.russian corrected.

Show diffs side-by-side

added added

removed removed

Lines of Context:
309
309
    static char msg[ 3072 ];
310
310
    ssize_t nsent;
311
311
    a_socklen_t msglen;
312
 
    static const char CONTENT_TYPE[] = "Content-Type:application/octet-stream";
313
312
    int err = 0;
314
313
 
315
314
    assert( (sockfd > 0) && code && reason );
318
317
 
319
318
    if ((200 == code) && g_uopt.h200_ftr[0]) {
320
319
        msglen = snprintf( msg, sizeof(msg) - 1, "HTTP/1.1 %d %s\r\nServer: %s\r\n%s\r\n%s\r\n\r\n",
321
 
            code, reason, g_app_info, CONTENT_TYPE, g_uopt.h200_ftr);
 
320
            code, reason, g_app_info, g_uopt.cnt_type, g_uopt.h200_ftr);
322
321
    }
323
322
    else {
324
323
        msglen = snprintf( msg, sizeof(msg) - 1, "HTTP/1.1 %d %s\r\nServer: %s\r\n%s\r\n\r\n",
325
 
                code, reason, g_app_info, CONTENT_TYPE );
 
324
                code, reason, g_app_info, g_uopt.cnt_type );
326
325
    }
327
326
    if( msglen <= 0 ) return ERR_INTERNAL;
328
327