Merge pull request 'fix query param struct filling' (#167) from matchesfix into v3
Reviewed-on: #167
This commit was merged in pull request #167.
	This commit is contained in:
		
							
								
								
									
										10
									
								
								handler.go
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								handler.go
									
									
									
									
									
								
							| @@ -487,10 +487,12 @@ func (h *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	matches = rflutil.FlattenMap(matches) | 	if len(matches) > 0 { | ||||||
| 	if err = rflutil.Merge(argv.Interface(), matches, rflutil.SliceAppend(true), rflutil.Tags([]string{"protobuf", "json"})); err != nil { | 		matches = rflutil.FlattenMap(matches) | ||||||
| 		h.errorHandler(ctx, handler, w, r, err, http.StatusBadRequest) | 		if err = rflutil.Merge(argv.Interface(), matches, rflutil.SliceAppend(true), rflutil.Tags([]string{"protobuf", "json"})); err != nil { | ||||||
| 		return | 			h.errorHandler(ctx, handler, w, r, err, http.StatusBadRequest) | ||||||
|  | 			return | ||||||
|  | 		} | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	hr := &rpcRequest{ | 	hr := &rpcRequest{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user