- Timestamp:
- 2010-07-15T23:23:04Z (14 years ago)
- Branches:
- master
- Children:
- 516a9c6
- Parents:
- e4e0b37
- Location:
- lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/http_client.c
re4e0b37 r7885d0f 67 67 req->request = g_strdup( request ); 68 68 req->request_length = strlen( request ); 69 req->redir_ttl = 3; 69 70 70 71 return( req ); … … 311 312 } 312 313 313 if( req->status_code == 301 || req->status_code == 302)314 if( ( req->status_code == 301 || req->status_code == 302 ) && req->redir_ttl-- > 0 ) 314 315 { 315 316 char *loc, *new_request, *new_host; -
lib/http_client.h
re4e0b37 r7885d0f 61 61 int finished; /* Set to non-0 if the request was completed 62 62 successfully. */ 63 int redir_ttl; /* You can set it to 0 if you don't want 64 http_client to follow them. */ 63 65 64 66 http_input_function func;
Note: See TracChangeset
for help on using the changeset viewer.