This repository was archived by the owner on Jun 2, 2024. It is now read-only.
This repository was archived by the owner on Jun 2, 2024. It is now read-only.
Closed
Description
Here is a small script that reproduces the issue. It has been run on PHP 5.6 against the 1.0.1 version of the library.
<?php
require_once __DIR__.'/vendor/autoload.php';
$request = new \Asika\Http\Request('http://example.com/foo', 'GET');
var_dump($request->hasHeader('host'));
var_dump($request->hasHeader('Host'));
var_dump($request->getHeader('host'));
var_dump($request->getHeader('Host'));
var_dump($request->getHeaders());
// bool(false)
// bool(false)
// array(1) {
// [0] =>
// string(11) "example.com"
// }
// array(1) {
// [0] =>
// string(11) "example.com"
// }
// array(1) {
// 'Host' =>
// array(1) {
// [0] =>
// string(11) "example.com"
// }
// }
Metadata
Metadata
Assignees
Labels
No labels