File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
33[ Full changelog] ( https://github.com/mozilla/glean.js/compare/v0.13.0...main )
44
5+ * [ #313 ] ( https://github.com/mozilla/glean.js/pull/313 ) : Send Glean.js version and platform information on X-Telemetry-Agent header instead of User-Agent header.
56# v0.13.0 (2021-05-18)
67
78[ Full changelog] ( https://github.com/mozilla/glean.js/compare/v0.12.0...v0.13.0 )
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ class PingUploader implements PingsDatabaseObserver {
133133 "Date" : ( new Date ( ) ) . toISOString ( ) ,
134134 "X-Client-Type" : "Glean.js" ,
135135 "X-Client-Version" : GLEAN_VERSION ,
136- "User -Agent" : `Glean/${ GLEAN_VERSION } (JS on ${ await this . platformInfo . os ( ) } )`
136+ "X-Telemetry -Agent" : `Glean/${ GLEAN_VERSION } (JS on ${ await this . platformInfo . os ( ) } )`
137137 } ;
138138
139139 return {
Original file line number Diff line number Diff line change @@ -214,10 +214,10 @@ describe("PingUploader", function() {
214214 assert . strictEqual ( appId , Context . applicationId ) ;
215215
216216 assert . ok ( "Date" in headers ) ;
217- assert . ok ( "User-Agent " in headers ) ;
217+ assert . ok ( "Content-Length " in headers ) ;
218218 assert . ok ( "Content-Type" in headers ) ;
219219 assert . ok ( "X-Client-Type" in headers ) ;
220220 assert . ok ( "X-Client-Version" in headers ) ;
221- assert . ok ( "Content-Length " in headers ) ;
221+ assert . ok ( "X-Telemetry-Agent " in headers ) ;
222222 } ) ;
223223} ) ;
You can’t perform that action at this time.
0 commit comments