/*
- * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#include "auth/UserRequest.h"
#include "client_side.h"
#include "fatal.h"
+#include "http/Stream.h"
#include "HttpRequest.h"
/**
{
ACLFilledChecklist *checklist = Filled(ch);
HttpRequest *request = checklist->request;
- http_hdr_type headertype;
+ Http::HdrType headertype;
if (NULL == request) {
fatal ("requiresRequest SHOULD have been true for this ACL!!");
return ACCESS_DENIED;
} else if (request->flags.accelerated) {
/* WWW authorization on accelerated requests */
- headertype = HDR_AUTHORIZATION;
+ headertype = Http::HdrType::AUTHORIZATION;
} else if (request->flags.intercepted || request->flags.interceptTproxy) {
debugs(28, DBG_IMPORTANT, "NOTICE: Authentication not applicable on intercepted requests.");
return ACCESS_DENIED;
} else {
/* Proxy authorization on proxy requests */
- headertype = HDR_PROXY_AUTHORIZATION;
+ headertype = Http::HdrType::PROXY_AUTHORIZATION;
}
/* get authed here */