Some more changes
This commit is contained in:
		
							parent
							
								
									c3e99cb15d
								
							
						
					
					
						commit
						fbd1fbf27f
					
				@ -32,40 +32,32 @@ def get_body_from_form_data(
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def on_part_data(b,s,e):
 | 
					    def on_part_data(b,s,e):
 | 
				
			||||||
        current_part.data = b[s:e]
 | 
					        current_part.data = b[s:e]
 | 
				
			||||||
        print("YO PART DATA", b[s:e])
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_part_end():
 | 
					    def on_part_end():
 | 
				
			||||||
        parts.append(current_part)
 | 
					        parts.append(current_part)
 | 
				
			||||||
        print("YO PART ENDED")
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_header_begin():
 | 
					    def on_header_begin():
 | 
				
			||||||
        print("YO HEADER BEGIN")
 | 
					        h = Header()
 | 
				
			||||||
 | 
					        current_part.headers.append(h)
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_header_end():
 | 
					    def on_header_end():
 | 
				
			||||||
        print("YO HEADER END")
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_header_field(b,s,e):
 | 
					    def on_header_field(b,s,e):
 | 
				
			||||||
        h = Header()
 | 
					        current_part.headers[-1].name = b[s:e]
 | 
				
			||||||
        h.name = b[s:e]
 | 
					 | 
				
			||||||
        current_part.headers.append(h)
 | 
					 | 
				
			||||||
        print("YO HEADER FIELD", )
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_header_value(b,s,e):
 | 
					    def on_header_value(b,s,e):
 | 
				
			||||||
        current_part.headers[-1].value = b[s:e]
 | 
					        current_part.headers[-1].value = b[s:e]
 | 
				
			||||||
        print("YO HEADER VALUE", b[s:e])
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_headers_finished():
 | 
					    def on_headers_finished():
 | 
				
			||||||
        print("YO HEADER FINISHED")
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def on_end():
 | 
					    def on_end():
 | 
				
			||||||
        print("YO END")
 | 
					 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    parser = multipart.MultipartParser(
 | 
					    parser = multipart.MultipartParser(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user