return rest instead of next so values with = works
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m36s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	AWS-Zig Build / build-zig-0.11.0-amd64-host (push) Successful in 1m36s
				
			This commit is contained in:
		
							parent
							
								
									33cb2589af
								
							
						
					
					
						commit
						d8b5366515
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -127,9 +127,7 @@ fn headersWithoutContext(allocator: std.mem.Allocator) !Headers { | |||
|             is_header_option = false; | ||||
|             var split = std.mem.splitSequence(u8, arg, "="); | ||||
|             const name = split.next().?; | ||||
|             if (split.next()) |s| { | ||||
|                 try headers.append(name, s); | ||||
|             } else return error.CommandLineError; | ||||
|             try headers.append(name, split.rest()); | ||||
|         } | ||||
|         if (std.mem.startsWith(u8, arg, "-" ++ header_option.short) or | ||||
|             std.mem.startsWith(u8, arg, "--" ++ header_option.long)) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue