Simple S3-like server for development purposes, written in Go
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use appropriate format for Last-Modified headers

+2 -2
+2 -2
server.go
··· 39 39 lastModified = "2000-01-01T00:00:00Z" 40 40 } else { 41 41 // NOTE: For actual birth time, see https://github.com/djherbis/times 42 - lastModified = fileInfo.ModTime().Format(time.RFC3339) 42 + lastModified = fileInfo.ModTime().UTC().Format(time.RFC3339) 43 43 } 44 44 buckets = append(buckets, Bucket{ 45 45 Name: file.Name(), ··· 115 115 116 116 w.Header().Set("Content-Type", "binary/octet-stream") 117 117 w.Header().Set("Content-Length", strconv.FormatInt(fileInfo.Size(), 10)) 118 - w.Header().Set("Last-Modified", fileInfo.ModTime().Format(time.RFC3339)) 118 + w.Header().Set("Last-Modified", fileInfo.ModTime().UTC().Format(http.TimeFormat)) 119 119 120 120 if r.Method == http.MethodHead { 121 121 return