Don't send an Accept header for HEAD requests.

This commit is contained in:
Aleric Inglewood
2012-11-18 01:29:24 +01:00
parent 57b66a9be9
commit 5499136677

View File

@@ -100,7 +100,7 @@ void LLURLRequest::initialize_impl(void)
// but if they did not specify a Content-Type, then ask the injector.
mHeaders.addHeader("Content-Type", mBody->contentType(), AIHTTPHeaders::keep_existing_header);
}
else
else if (mAction != HTTP_HEAD)
{
// Check to see if we have already set Accept or not. If no one
// set it, set it to application/llsd+xml since that's what we