Fix missing consumption of params in UniReqPost
This commit is contained in:
		
							parent
							
								
									5372e6010d
								
							
						
					
					
						commit
						60b68d3970
					
				|  | @ -290,7 +290,7 @@ func (u *Unifi) UniReqPut(apiPath string, params string) (*http.Request, error) | |||
| func (u *Unifi) UniReqPost(apiPath string, params string) (*http.Request, error) { | ||||
| 	apiPath = u.path(apiPath) | ||||
| 
 | ||||
| 	req, err := http.NewRequest(http.MethodPost, u.URL+apiPath, bytes.NewBufferString("")) //nolint:noctx
 | ||||
| 	req, err := http.NewRequest(http.MethodPost, u.URL+apiPath, bytes.NewBufferString(params)) //nolint:noctx
 | ||||
| 	if err != nil { | ||||
| 		return nil, fmt.Errorf("creating request: %w", err) | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue