add logging for POST request interception in DRM handling
This commit is contained in:
		
							parent
							
								
									8d4cd89a02
								
							
						
					
					
						commit
						f40e1880d6
					
				@ -827,6 +827,7 @@ function handleDRMInterception(drmInfo, body, url, setBodyCallback, continueRequ
 | 
			
		||||
        const method = (config.method || "GET").toUpperCase();
 | 
			
		||||
 | 
			
		||||
        if (method === "POST" && config.body) {
 | 
			
		||||
            logWithPrefix("[FETCH] Intercepting POST request to:", resource);
 | 
			
		||||
            const drmInfo = detectDRMChallenge(config.body);
 | 
			
		||||
 | 
			
		||||
            const result = handleDRMInterception(
 | 
			
		||||
@ -860,6 +861,7 @@ function handleDRMInterception(drmInfo, body, url, setBodyCallback, continueRequ
 | 
			
		||||
 | 
			
		||||
    XMLHttpRequest.prototype.send = function (body) {
 | 
			
		||||
        if (this._method && this._method.toUpperCase() === "POST" && body) {
 | 
			
		||||
            logWithPrefix("[XHR] Intercepting POST request to:", this._url);
 | 
			
		||||
            const drmInfo = detectDRMChallenge(body);
 | 
			
		||||
 | 
			
		||||
            const result = handleDRMInterception(
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user