fix rest_xml_no_input integration test
This commit is contained in:
		
							parent
							
								
									08c2ed0c07
								
							
						
					
					
						commit
						03f7228662
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -399,7 +399,9 @@ pub fn Request(comptime action: anytype) type {
 | 
				
			||||||
            const xml_options = xml_shaper.ParseOptions{ .allocator = options.client.allocator };
 | 
					            const xml_options = xml_shaper.ParseOptions{ .allocator = options.client.allocator };
 | 
				
			||||||
            var body: []const u8 = result.body;
 | 
					            var body: []const u8 = result.body;
 | 
				
			||||||
            var free_body = false;
 | 
					            var free_body = false;
 | 
				
			||||||
            if (std.mem.lastIndexOf(u8, result.body[result.body.len - 20 ..], "Response>") == null) {
 | 
					            if (std.mem.lastIndexOf(u8, result.body[result.body.len - 20 ..], "Response>") == null and
 | 
				
			||||||
 | 
					                std.mem.lastIndexOf(u8, result.body[result.body.len - 20 ..], "Result>") == null)
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
                free_body = true;
 | 
					                free_body = true;
 | 
				
			||||||
                // chop the "<?xml version="1.0"?>" from the front
 | 
					                // chop the "<?xml version="1.0"?>" from the front
 | 
				
			||||||
                const start = if (std.mem.indexOf(u8, result.body, "?>")) |i| i else 0;
 | 
					                const start = if (std.mem.indexOf(u8, result.body, "?>")) |i| i else 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue