File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919#include " HTTPServer.h"
2020
21- #include < unordered_map>
2221#include < vector>
2322#include < string>
2423#include < ctime>
@@ -689,7 +688,7 @@ ResourceHost* HTTPServer::getResourceHostForRequest(const HTTPRequest* req) {
689688 host.append (std::format (" :{}" , listenPort));
690689 }
691690
692- std::unordered_map<std::string, ResourceHost*>::const_iterator it = vhosts.find (host);
691+ auto it = vhosts.find (host);
693692
694693 if (it != vhosts.end ())
695694 resHost = it->second ;
Original file line number Diff line number Diff line change 2020
2121#include < sstream>
2222#include < string>
23- #include < unordered_map>
2423#include < fstream>
2524#include < dirent.h>
2625#include < sys/stat.h>
@@ -37,7 +36,7 @@ ResourceHost::ResourceHost(std::string const& base) : baseDiskPath(base) {
3736 * @return MIME type as a String. If type could not be found, returns an empty string
3837 */
3938std::string ResourceHost::lookupMimeType (std::string const & ext) {
40- std::unordered_map<std::string, std::string>::const_iterator it = mimeMap.find (ext);
39+ auto it = mimeMap.find (ext);
4140 if (it == mimeMap.end ())
4241 return " " ;
4342
You can’t perform that action at this time.
0 commit comments