mirror of
				https://github.com/aclindsa/ofxgo.git
				synced 2025-11-03 18:03:25 -05:00 
			
		
		
		
	Make an empty CharsetReader
This gets around weird errors when the <?xml processing instruction has things like utf-16 in it. This should maybe be fixed another way later.
This commit is contained in:
		
							
								
								
									
										3
									
								
								ofx.go
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								ofx.go
									
									
									
									
									
								
							@@ -339,6 +339,9 @@ func (or *Response) Unmarshal(reader io.Reader, xmlVersion bool) error {
 | 
				
			|||||||
		decoder.Strict = false
 | 
							decoder.Strict = false
 | 
				
			||||||
		decoder.AutoCloseAfterCharData = ofxLeafElements
 | 
							decoder.AutoCloseAfterCharData = ofxLeafElements
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						decoder.CharsetReader = func(charset string, input io.Reader) (io.Reader, error) {
 | 
				
			||||||
 | 
							return input, nil
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if xmlVersion {
 | 
						if xmlVersion {
 | 
				
			||||||
		// parse the xml header
 | 
							// parse the xml header
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user