[bug?] headers as strings on handleResponse on fastboot mode
See original GitHub issueHello, today I struggled big time until I realized that my adapter’s handleResponse
function had headers parameter as a string inside an property server
inside it, instead of the regular object from ED. So In order to fix that I did the following:
handleResponse(status, headers, payload, requestData) {
let _headers = headers;
if(typeof FastBoot !== 'undefined'){
let merged = {};
headers.server.split('\n').map((l) => {
let line = l.split(': ');
let o = {};
line[0] = line[0].split('-').map((k) => k.charAt(0).toUpperCase() + k.substr(1,k.length-1)).join('-');
o[line[0]] = line[1];
return o;
}).forEach((o) => Object.assign(merged, o));
_headers = merged;
}
...
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
fastboot/fuzzy_fastboot/main.cpp - platform/system/core
ASSERT_NE(transport, nullptr) << "Could not find the fastboot device after: " ... << cmd + "responded with a string that does not start...
Read more >issue with curl : All headers must be strings #30 - GitHub
It seems there was a change somewhere that leads to an error. ... .list = opts$headers): All headers must be strings.
Read more >Spring Integration - object placed in header is returned as ...
I created a stand alone project to reproduce the error, and that added in the header as an expected AtomicInteger.
Read more >Moving Fastboot to Userspace | Android Open Source Project
To enter fastbootd mode, bootloader writes boot-fastboot into the command field ... Returns an error if the vendor boot header is version 3....
Read more >Column Header Strings[] Property - NI - National Instruments
An array of the strings in the column headers. Remarks. The following table lists the characteristics of this property. Data type. Permissions ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sounds good. Feel free to reopen if you have a reproduction. Happy to take a look.
@kratiahuja Let’s close it for now then. Unfortunately I don’t have the time to reproduce it right now. I stumbled upon it and posted a solution so anyone else hitting the same issue could find a workaround until it gets solved.