mirror of
				https://github.com/therootcompany/request.js
				synced 2025-11-04 06:02:45 +00:00 
			
		
		
		
	fix: copy http options from opts (not opts.uri)
This commit is contained in:
		
							parent
							
								
									0a2e7afa76
								
							
						
					
					
						commit
						5b539deb7b
					
				
							
								
								
									
										4
									
								
								index.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								index.js
									
									
									
									
									
								
							@ -324,7 +324,9 @@ function setDefaults(defs) {
 | 
				
			|||||||
            'timeout',
 | 
					            'timeout',
 | 
				
			||||||
            'setHost'
 | 
					            'setHost'
 | 
				
			||||||
        ].forEach(function (key) {
 | 
					        ].forEach(function (key) {
 | 
				
			||||||
            finalOpts[key] = opts.uri[key];
 | 
					            if (key in opts) {
 | 
				
			||||||
 | 
					                finalOpts[key] = opts[key];
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        finalOpts.method = opts.method;
 | 
					        finalOpts.method = opts.method;
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user