File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
SensorsAnalyticsSDK/src/main/java/com/sensorsdata/analytics/javasdk Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -971,7 +971,7 @@ String getHttpContent() {
971
971
}
972
972
973
973
HttpConsumer (String serverUrl , Map <String , String > httpHeaders ) {
974
- this .serverUrl = serverUrl ;
974
+ this .serverUrl = serverUrl . trim () ;
975
975
this .httpHeaders = httpHeaders ;
976
976
977
977
this .compressData = true ;
@@ -994,7 +994,7 @@ HttpUriRequest getHttpRequest(final String data) throws IOException {
994
994
HttpPost httpPost = new HttpPost (this .serverUrl );
995
995
996
996
httpPost .setEntity (getHttpEntry (data ));
997
- httpPost .addHeader ("User-Agent" , "SensorsAnalytics Java SDK" );
997
+ httpPost .addHeader ("User-Agent" , "SensorsAnalytics Java SDK " + SDK_VERSION );
998
998
999
999
if (this .httpHeaders != null ) {
1000
1000
for (Map .Entry <String , String > entry : this .httpHeaders .entrySet ()) {
You can’t perform that action at this time.
0 commit comments