Changeset 3236


Ignore:
Timestamp:
Jul 13, 2010 1:18:08 PM (9 years ago)
Author:
ming
Message:

Misc fix (re #1068): added port number in the Host header of http request.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util/http_client.c

    r3229 r3236  
    882882                     STR_PREC(hreq->param.version)); 
    883883        /* Header field "Host" */ 
    884         str_snprintf(&pkt, BUF_SIZE, PJ_TRUE, "Host: %.*s\n", 
    885                      STR_PREC(hreq->hurl.host)); 
     884        str_snprintf(&pkt, BUF_SIZE, PJ_TRUE, "Host: %.*s:%d\n", 
     885                     STR_PREC(hreq->hurl.host), hreq->hurl.port); 
    886886        if (!pj_strcmp2(&hreq->param.method, http_method_names[HTTP_PUT])) { 
    887887            char buf[16]; 
Note: See TracChangeset for help on using the changeset viewer.