Skip to content
Permalink
Browse files

Adding a test and fixing issues where q value had whitespace as well.

Refs #1684
  • Loading branch information...
markstory committed Aug 26, 2011
1 parent 72ef310 commit aee650defb22b769aff1bfe5d2e90e59d28f1c3f
@@ -181,7 +181,7 @@ function __construct() {
foreach ($this->__acceptTypes as $i => $type) {
if (strpos($type, ';')) {
$type = explode(';', $type);
$this->__acceptTypes[$i] = $type[0];
$this->__acceptTypes[$i] = trim($type[0]);
}
}
parent::__construct();
@@ -469,7 +469,7 @@ function testRequestContentTypes() {
$this->_init();
$this->assertTrue($this->RequestHandler->isWap());
$_SERVER['HTTP_ACCEPT'] = 'application/rss+xml , text/xml, application/xml,application/xhtml+xml';
$_SERVER['HTTP_ACCEPT'] = 'application/rss+xml ;q=0.9 , text/xml, application/xml,application/xhtml+xml';
$this->_init();
$this->assertFalse($this->RequestHandler->isAtom());
$this->assertTrue($this->RequestHandler->isRSS());

0 comments on commit aee650d

Please sign in to comment.
You can’t perform that action at this time.