private void addCorsResponseHeader(HttpServletRequest request,
          HttpServletResponse response) {
        String corsOrigin = request.getHeader(HttpHeaders.ORIGIN);
        if (!Strings.isNullOrEmpty(corsOrigin) &&
                corsRules.isOriginAllowed(corsOrigin)) {
            response.addHeader(HttpHeaders.ACCESS_CONTROL_ALLOW_ORIGIN,
                    corsRules.getAllowedOrigin(corsOrigin));
            response.addHeader(HttpHeaders.ACCESS_CONTROL_ALLOW_METHODS,
                    corsRules.getAllowedMethods());
            response.addHeader(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS,
                    corsRules.getExposedHeaders());
            if (corsRules.isAllowCredentials()) {
                response.addHeader(HttpHeaders.ACCESS_CONTROL_ALLOW_CREDENTIALS,
                        "true");
            }
        }
    }
Parse ISO 8601 timestamp into seconds since 1970.
src/main/java/org/gaul/s3proxy/S3ProxyHandler.java