Check-in [5f36930fec]
Overview
Comment:Updated to provide method earlier to log
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5f36930fecd162df97dc5e387ed6121eed5219bc
User & Date: rkeene on 2014-02-11 08:12:10
Other Links: manifest | tags
Context
2014-02-11
08:36
Corrected spelling error in comments check-in: 7f5706f719 user: rkeene tags: trunk
08:12
Updated to provide method earlier to log check-in: 5f36930fec user: rkeene tags: trunk
08:11
Added ETag check-in: 63a88bc1bc user: rkeene tags: trunk
Changes

Modified filed.c from [288fd58a21] to [882adf7425].

   778    778   		fclose(fp);
   779    779   
   780    780   		return;
   781    781   	}
   782    782   
   783    783   	path = request->path;
   784    784   	strcpy(log->buffer, path);
          785  +	log->method = request->method;
   785    786   
   786    787   	http_code = -1;
   787    788   
   788    789   	fileinfo = filed_open_file(path, &request->fileinfo);
   789    790   	if (fileinfo == NULL) {
   790    791   		filed_error_page(fp, date_current, 404, request->method);
   791    792   
................................................................................
   850    851   
   851    852   			log->http_code = http_code;
   852    853   			log->reason = "OK";
   853    854   			log->starttime = time(NULL);
   854    855   			log->req_offset = request->headers.range.offset;
   855    856   			log->req_length = request->headers.range.length;
   856    857   			log->file_length = fileinfo->len;
   857         -			log->method = request->method;
   858    858   
   859    859   #ifdef FILED_NONBLOCK_HTTP
   860    860   			int socket_flags;
   861    861   			fd_set rfd, wfd;
   862    862   			char sinkbuf[8192];
   863    863   			ssize_t read_ret;
   864    864