Minor bug fixes
This commit is contained in:
		@@ -1,6 +1,7 @@
 | 
			
		||||
"use strict";
 | 
			
		||||
 | 
			
		||||
const zlib = require( "zlib" );
 | 
			
		||||
const os = require( "os" )
 | 
			
		||||
 | 
			
		||||
const cl = global.botanLoader;
 | 
			
		||||
const Dragonfly = global.Dragonfly;
 | 
			
		||||
@@ -85,7 +86,7 @@ class WebFrame
 | 
			
		||||
		var method = "GET";
 | 
			
		||||
		if( this.HTTP.request.isPost )
 | 
			
		||||
		{
 | 
			
		||||
			this.requestStr = new CondStream( "/tmp/", 2048 );
 | 
			
		||||
			this.requestStr = new CondStream( os.tmpdir(), 2048 );
 | 
			
		||||
 | 
			
		||||
			this.HTTP.request.raw.addListener(
 | 
			
		||||
				"data" , ( x ) => _self.requestStr.write( x )
 | 
			
		||||
@@ -101,7 +102,7 @@ class WebFrame
 | 
			
		||||
		var url = this.HTTP.request.raw.url;
 | 
			
		||||
		Dragonfly.Info(
 | 
			
		||||
			( this.HTTP.request.raw.headers[ "x-forwarded-for" ] || this.HTTP.request.remoteAddr ) + " "
 | 
			
		||||
			+ method + ": " + encodeURI( url )
 | 
			
		||||
			+ method + ": " + url
 | 
			
		||||
			+ " - " + this.HTTP.request.raw.headers["user-agent"]
 | 
			
		||||
			, Dragonfly.Visibility.VISIBLE
 | 
			
		||||
		);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user