fix: restore accidentally commented code
This commit is contained in:
		
							parent
							
								
									3c7b336298
								
							
						
					
					
						commit
						dc50fd882c
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -514,10 +514,11 @@ pub fn Request(comptime request_action: anytype) type { | |||
| 
 | ||||
|                 const body_field = @field(rc.response, action.Response.http_payload); | ||||
|                 const BodyField = @TypeOf(body_field); | ||||
| 
 | ||||
|                 if (BodyField == []const u8 or BodyField == ?[]const u8) { | ||||
|                     expected_body_field_len = 0; | ||||
|                     // We can't use body_field for this set - only @field will work | ||||
|                     // @field(rc.response, action.Response.http_payload) = try rc.arena.allocator().dupe(u8, response.body); | ||||
|                     @field(rc.response, action.Response.http_payload) = try rc.arena.allocator().dupe(u8, response.body); | ||||
|                     return rc; | ||||
|                 } | ||||
|                 rc.deinit(); | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue