fixed bug with case-sensitive headers, added support for giving a named subresource instead of wire type