mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: fix eslint issues (#9017)
This commit is contained in:
@@ -191,7 +191,7 @@ function buildJavaOptions(options: httpModule.HttpRequestOptions) {
|
||||
const arrayList = new java.util.ArrayList<org.nativescript.widgets.Async.Http.KeyValuePair>();
|
||||
const pair = org.nativescript.widgets.Async.Http.KeyValuePair;
|
||||
|
||||
for (let key in options.headers) {
|
||||
for (const key in options.headers) {
|
||||
arrayList.add(new pair(key, options.headers[key] + ''));
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ export function request(options: httpModule.HttpRequestOptions): Promise<httpMod
|
||||
urlRequest.setValueForHTTPHeaderField(USER_AGENT, USER_AGENT_HEADER);
|
||||
|
||||
if (options.headers) {
|
||||
for (let header in options.headers) {
|
||||
for (const header in options.headers) {
|
||||
urlRequest.setValueForHTTPHeaderField(options.headers[header] + '', header);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user