Skip to content

Commit

Permalink
Added User-Agent header to sample code for fetching integration config
Browse files Browse the repository at this point in the history
  • Loading branch information
felixdrud committed Oct 25, 2021
1 parent 2a14219 commit 375cf52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/IntegrationConfigProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ private static String getJsonText(String url) throws IOException {
URL resource = new URL(url);
URLConnection connection = resource.openConnection();
connection.setRequestProperty("api-key", apiKey);
connection.setRequestProperty("User-Agent", "queueit-connector");
BufferedReader in = new BufferedReader(new InputStreamReader(connection.getInputStream()));
StringBuilder response = new StringBuilder();
String inputLine;
Expand Down

0 comments on commit 375cf52

Please sign in to comment.