Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ public void qnaMakerUserAgent() {
results[0].getAnswer());

// Verify that we added the bot.builder package details.
Assert.assertTrue(request.getHeader("User-Agent").contains("BotBuilder/4.0.0"));
Assert.assertTrue(request.getHeader("User-Agent").contains("BotBuilder/4."));
} catch (Exception ex) {
fail();
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@
/**
* Loads configuration properties for bot-connector.
*
* Properties are located in an optional connector.properties file in the
* classpath.
* The version of the package will be in the project.properties file.
*/
public class ConnectorConfiguration {
/**
* Load and pass properties to a function.
*
*
* @param func The function to process the loaded properties.
*/
public void process(Consumer<Properties> func) {
final Properties properties = new Properties();
try (InputStream propStream =
UserAgent.class.getClassLoader().getResourceAsStream("connector.properties")) {
UserAgent.class.getClassLoader().getResourceAsStream("project.properties")) {

properties.load(propStream);
if (!properties.containsKey("version")) {
Expand Down