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