|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-22 22:37 UTC] jgotts at gmail dot com
-Status: Open
+Status: Closed
[2013-10-22 22:37 UTC] jgotts at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 14:00:01 2025 UTC |
Description: ------------ It appears that apache_request_headers won't return blank headers. The key for said header is missing from the associative array. We have something quite simple on the JavaScript side: var xhr = new XMLHttpRequest(); ... xhr.setRequestHeader('my-header', ''); Nothing in https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest disallows a blank second argument for setRequestHeader(). And on the PHP side, we have: $headers = apache_request_headers(); $headers['my-header'] is missing! What ate it?