426 +std::map<std::string, std::string> Index::build_headers(const std::string& language) 438 + {"Accept-Language", language}, 486 + QSharedPointer<click::web::Response> response(client->call( 487 + get_base_url() + click::BOOTSTRAP_PATH, "GET", false, build_headers("en"), "", params)); //TODO: language
You don't need to do all this work to pass the language around or set Accept-Language manually. It is already added automatically in web::Client::cal().
« Back to merge proposal
426 +std::map< std::string, std::string> Index:: build_headers( const std::string& language) click:: web::Response> response( client- >call( BOOTSTRAP_ PATH, "GET", false, build_headers( "en"), "", params)); //TODO: language
438 + {"Accept-Language", language},
486 + QSharedPointer<
487 + get_base_url() + click::
You don't need to do all this work to pass the language around or set Accept-Language manually. It is already added automatically in web::Client::cal().