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

Missing Content-Lenght header (HTTP2Adapter on a HTTP 1/1 connection) #2382

Open
pnotel opened this issue Feb 18, 2025 · 1 comment
Open
Labels
h: need triage This issue needs to be categorized s: bug Something isn't working

Comments

@pnotel
Copy link

pnotel commented Feb 18, 2025

Package

http2_adapter

Version

2.6.0

Operating-System

Android

Adapter

Http2Adapter

Output of flutter doctor -v

[✓] Flutter (Channel stable, 3.24.4, on macOS 15.3 24D60 darwin-arm64, locale fr-FR)
    • Flutter version 3.24.4 on channel stable at ~/fvm/versions/3.24.4
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (4 months ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.1)
    • Android SDK at ~/Library/Android/sdk
    • Platform android-35, build-tools 35.0.1
    • ANDROID_HOME = ~/Library/Android/sdk
    • Java binary at: /Library/Java/JavaVirtualMachines/amazon-corretto-17.jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment Corretto-17.0.9.8.1 (build 17.0.9+8-LTS)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 83.0.4
    • Dart plugin version 243.23177

[✓] IntelliJ IDEA Ultimate Edition (version 2024.3.1)
    • IntelliJ at ~/Applications/IntelliJ IDEA Ultimate.app
    • Flutter plugin version 83.0.4
    • Dart plugin version 243.23177

[✓] VS Code (version 1.97.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.104.0

Dart Version

3.5.4

Steps to Reproduce

  • perform a GET request using HTTP2Adapter on a HTTP 1/1 only backend
  • repeat previous step many times (how many can vary: maybe 5, maybe 10) and maybe quickly - not sure exactly for the details
  • trace the HTTP requests

Expected Result

all requests must have the Content-Length HTTP header (required on HTTP 1/1, optional only on HTTP 2/0)

Actual Result

Most of the requests do have the Content-Length header but some others don't

@pnotel pnotel added h: need triage This issue needs to be categorized s: bug Something isn't working labels Feb 18, 2025
@pnotel pnotel changed the title Missing Content-Lenght header (HTTP 1/1) Missing Content-Lenght header (HTTP2Adapter on a HTTP 1/1 connection) Feb 18, 2025
@AlexV525
Copy link
Member

Could you provide a minimal reproducible example?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
h: need triage This issue needs to be categorized s: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants