Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseConfig (0.18 sec)

  1. cmd/bucket-notification-handlers.go

    	// PutBucketNotification always needs a Content-Length.
    	if r.ContentLength <= 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingContentLength), r.URL)
    		return
    	}
    
    	config, err := event.ParseConfig(io.LimitReader(r.Body, r.ContentLength), globalSite.Region, globalEventNotifier.targetList)
    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		if event.IsEventError(err) {
    			apiErr = toAPIError(ctx, err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5.1K bytes
    - Viewed (0)
Back to top