Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content-Length variable we use for sending update file needs to be case insensitive #27731

Merged

Conversation

bugobliterator
Copy link
Member

@bugobliterator bugobliterator commented Aug 2, 2024

  • also skip overriding SERIAL_ORDER in CubePilot-PPPGW

@bugobliterator bugobliterator force-pushed the pr-content-length-case-insensitive branch 2 times, most recently from bfce81c to 4ce2128 Compare August 2, 2024 03:59
const uint32_t content_length = atoi(p);
const char *clen1 = "\r\nContent-Length:";
const char *clen2 = "\r\ncontent-length:";
const char *p1 = strstr(headers, clen1);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

char *p = strstr(headers, clen);
if (p == nullptr) {
p = strstr(headers, clen2);
}

@tridge
Copy link
Contributor

tridge commented Aug 14, 2024

should remove the ECC change

@tridge tridge removed the DevCallEU label Aug 14, 2024
@bugobliterator bugobliterator force-pushed the pr-content-length-case-insensitive branch from 4ce2128 to 6eefd45 Compare August 15, 2024 01:51
@peterbarker
Copy link
Contributor

  • also skip overriding SERIAL_ORDER in CubePilot-PPPGW

It's really strange to put this in the same PR.

@bugobliterator
Copy link
Member Author

  • also skip overriding SERIAL_ORDER in CubePilot-PPPGW

It's really strange to put this in the same PR.

Otherwise will need to separate builds of Bootloaders.

@bugobliterator bugobliterator force-pushed the pr-content-length-case-insensitive branch from 6eefd45 to 6b03b74 Compare August 28, 2024 02:46
@tridge tridge merged commit 0dbe9ed into ArduPilot:master Aug 28, 2024
47 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants