Re: [PATCH] Support If-Modified-Since header on requests in httpd

2015-05-03 Thread Florian Obser
On Sun, May 03, 2015 at 11:14:48AM -0500, Kyle Thompson wrote: > On Sun, May 03, 2015 at 03:00:40PM +, Florian Obser wrote: > > On Sat, Apr 18, 2015 at 12:19:46PM -0500, jmp wrote: > > RFC 7232 > > > >A recipient MUST ignore the If-Modified-Since header field if the > >received field-v

Re: [PATCH] Support If-Modified-Since header on requests in httpd

2015-05-03 Thread Kyle Thompson
On Sun, May 03, 2015 at 03:00:40PM +, Florian Obser wrote: > On Sat, Apr 18, 2015 at 12:19:46PM -0500, jmp wrote: > RFC 7232 > >A recipient MUST ignore the If-Modified-Since header field if the >received field-value is not a valid HTTP-date, or if the request >method is neither GET

Re: [PATCH] Support If-Modified-Since header on requests in httpd

2015-05-03 Thread Florian Obser
On Sat, Apr 18, 2015 at 12:19:46PM -0500, jmp wrote: > I found 'timeoff' to be useful for converting to a time_t that is in > GMT; however, did not find documentation on this in the man pages. It > seems to be a function dating back to at least the NetBSD fork. If > there is a better time function

Re: [PATCH] Support If-Modified-Since header on requests in httpd

2015-04-18 Thread Kyle Thompson
Sorry for the spam, I submitted the patch during the maintenance period. Any advice on this patch is appreciated. Kyle Thompson > On Apr 18, 2015, at 12:19 PM, jmp wrote: > > If-Modified-Since is sent by http clients to be notified if a file has > been changed. This patch adds a function serve

[PATCH] Support If-Modified-Since header on requests in httpd

2015-04-18 Thread jmp
If-Modified-Since is sent by http clients to be notified if a file has been changed. This patch adds a function server_file_modified_since that checks the time of the file from stat with the time sent from the client. The separate function will help implement proper Range support. I found 'timeoff