Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for writeErrorResponse (0.2 sec)

  1. cmd/object-handlers.go

    					s3Error = ErrNoSuchKey
    				}
    			}
    		}
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Get request range.
    	rangeHeader := r.Header.Get(xhttp.Range)
    	if rangeHeader != "" {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrUnsupportedRangeHeader), r.URL)
    		return
    	}
    
    	if r.ContentLength <= 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrEmptyRequestBody), r.URL)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    		return
    	}
    
    	file = filepath.ToSlash(file)
    	// Reject attempts to traverse parent or absolute paths.
    	if hasBadPathComponent(volume) || hasBadPathComponent(file) {
    		writeErrorResponse(r.Context(), w, errorCodes.ToAPIErr(ErrInvalidResourceName), r.URL)
    		return
    	}
    
    	var publicKey *rsa.PublicKey
    
    	publicKeyB64 := r.Form.Get("public-key")
    	if publicKeyB64 != "" {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
Back to top