function _services_fix_header_key in Services 7.3
Fixes request headers to match what PHP gives us.
Return value
a string with the correct syntax for a header value.
2 calls to _services_fix_header_key()
- _services_parse_request_headers in ./
services.module - Returns all request headers.
- _services_version_header_options in ./
services.module - Determine if any potential versions exist as valid headers. returns false if no version is present in the header for the specific call.
File
- ./
services.module, line 797 - Provides a generic but powerful API for web services.
Code
function _services_fix_header_key($key, $length = 0) {
return str_replace(' ', '-', ucwords(str_replace('_', ' ', strtolower(substr($key, $length)))));
}