fix: add missing content-disposition from CORS handler (#10137)

This commit is contained in:
Harshavardhana
2020-07-27 09:03:38 -07:00
committed by GitHub
parent 9108abf204
commit 47e304d03c
4 changed files with 55 additions and 2 deletions

View File

@@ -413,6 +413,9 @@ func extractAPIVersion(r *http.Request) string {
// If none of the http routes match respond with appropriate errors
func errorResponseHandler(w http.ResponseWriter, r *http.Request) {
if r.Method == http.MethodOptions {
return
}
version := extractAPIVersion(r)
switch {
case strings.HasPrefix(r.URL.Path, peerRESTPrefix):