Skip to content

Commit

Permalink
"x-" perfix in application-version header
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaik committed Jul 8, 2019
1 parent be2dd8d commit 208a547
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ define(['angularAMD', 'endpointConfiguration', 'requestParametersService'],
}
}).then(function (data) {
deferred.resolve(data.data);
$rootScope.applicationVersion = data.headers()['application-version'];
$rootScope.applicationVersion = data.headers()['x-application-version'];
return deferred.promise;
}).catch(function (exception) {
handleFailed('Failed to load report data!', exception);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class MetadataServlet extends BasicDataServlet {
private static final Logger LOGGER = LoggerFactory.getLogger(MetadataServlet.class);

private static final String FORMATTED_PARAM = "formatted";
private static final String APP_VERSION_HEADER = "Application-Version";
private static final String APP_VERSION_HEADER = "X-Application-Version";
private static final Gson PRETTY_PRINT_GSON = new GsonBuilder().setPrettyPrinting().create();
private static final JsonParser JSON_PARSER = new JsonParser();

Expand Down

0 comments on commit 208a547

Please sign in to comment.