router: PathPrefix router was wrong. (#3172)

This commit is contained in:
Harshavardhana
2016-11-04 12:13:22 -07:00
committed by GitHub
parent d9bab6b3bd
commit d192044915
5 changed files with 7 additions and 8 deletions

View File

@@ -187,8 +187,7 @@ func parseAmzDateHeader(req *http.Request) (time.Time, APIErrorCode) {
return time.Time{}, ErrMissingDateHeader
}
type timeValidityHandler struct {
}
type timeValidityHandler struct{}
func (h timeValidityHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
// Verify if date headers are set, if not reject the request