note
This commit is contained in:
		
							parent
							
								
									f041c5161b
								
							
						
					
					
						commit
						b300efeb96
					
				@ -22,7 +22,7 @@ app.use((req, _res, next) => {
 | 
				
			|||||||
        req.headers["content-encoding"] = undefined;
 | 
					        req.headers["content-encoding"] = undefined;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // U18 and below use application/x-www-form-urlencoded even tho the data is JSON which Express doesn't like.
 | 
					    // U18 uses application/x-www-form-urlencoded even tho the data is JSON which Express doesn't like.
 | 
				
			||||||
    if (req.headers["content-type"] == "application/x-www-form-urlencoded") {
 | 
					    if (req.headers["content-type"] == "application/x-www-form-urlencoded") {
 | 
				
			||||||
        req.headers["content-type"] = "application/octet-stream";
 | 
					        req.headers["content-type"] = "application/octet-stream";
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user