Changeset 4287

Show
Ignore:
Timestamp:
03/07/10 22:19:15 (6 months ago)
Author:
andoma
Message:

Add authentication to http_request() too

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/showtime/src/fileaccess/fa_http.c

    r4284 r4287  
    17461746    htsbuf_qprintf(&q, "Content-Type: %s\r\n", postcontenttype); 
    17471747 
     1748  if(hf->hf_auth != NULL) 
     1749    htsbuf_qprintf(&q, "%s\r\n", hf->hf_auth); 
     1750 
     1751 
    17481752  htsbuf_qprintf(&q, "\r\n"); 
    17491753 
     
    17681772  case 307: 
    17691773    if(redirect(hf, &redircount, errbuf, errlen, code)) 
     1774      return -1; 
     1775    goto retry; 
     1776 
     1777  case 401: 
     1778    if(authenticate(hf, errbuf, errlen)) 
    17701779      return -1; 
    17711780    goto retry; 
     
    18561865  return 0; 
    18571866} 
    1858  
    1859  
    1860  
    1861