mirror of
https://github.com/webmin/webmin.git
synced 2026-06-27 22:40:26 +01:00
Fix to pass request with header if required
This commit is contained in:
@@ -137,6 +137,9 @@ if ($ref && $ref =~ /^.*\Q$url\E(.*)/) {
|
||||
':'.$s->{'port'}.$1;
|
||||
&write_http_connection($con, "Referer: $rurl\r\n");
|
||||
}
|
||||
if (($ENV{'HTTP_X_REQUESTED_WITH_PROXY'} || '') eq 'XMLHttpRequest') {
|
||||
&write_http_connection($con, "X-Requested-With: XMLHttpRequest\r\n");
|
||||
}
|
||||
&write_http_connection($con, "\r\n");
|
||||
my $post;
|
||||
if ($cl) {
|
||||
|
||||
Reference in New Issue
Block a user