mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 21:00:50 +00:00
Update the string data source to use the new input metadata APIs
This commit is contained in:
parent
0cf7d7b879
commit
299f260287
@ -230,30 +230,30 @@ sub getDefaultString {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Get the relevant headers from the input service:
|
||||||
|
|
||||||
# XXX The next four SO have to change...
|
|
||||||
sub acceptType {
|
sub acceptType {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my($app, $protocol) = @_;
|
my($app, $protocol) = @_;
|
||||||
return $app->input->acceptType;
|
return $app->input->getMetaData('acceptType');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub acceptEncoding {
|
sub acceptEncoding {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my($app, $protocol) = @_;
|
my($app, $protocol) = @_;
|
||||||
return $app->input->acceptEncoding;
|
return $app->input->getMetaData('acceptEncoding');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub acceptCharset {
|
sub acceptCharset {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my($app, $protocol) = @_;
|
my($app, $protocol) = @_;
|
||||||
return $app->input->acceptCharset;
|
return $app->input->getMetaData('acceptCharset');
|
||||||
}
|
}
|
||||||
|
|
||||||
sub acceptLanguage {
|
sub acceptLanguage {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my($app, $protocol) = @_;
|
my($app, $protocol) = @_;
|
||||||
return $app->input->acceptLanguage;
|
return $app->input->getMetaData('acceptLanguage');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user