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

[Bug report] Map<String, String> headers #220

Open
hsnbsst opened this issue Apr 3, 2020 · 1 comment
Open

[Bug report] Map<String, String> headers #220

hsnbsst opened this issue Apr 3, 2020 · 1 comment
Labels
wait confirm Waiting for developer confirmation

Comments

@hsnbsst
Copy link

hsnbsst commented Apr 3, 2020

Describe the bug
Map<String, String> headers
private headers do not work, Referrer: feature is not active, can you check that, it doesn't work when i try to open a link in this feature

Flutter version

[✓] Flutter (Channel master, v1.15.21, on Mac OS X 10.15.3 19D76, locale tr-TR)
    • Flutter version 1.15.21 at /Users/hsnbsst/development/flutter
    • Framework revision e2b4edd286 (3 weeks ago), 2020-03-13 02:46:02 -0400
    • Engine revision d7a00b8b09
    • Dart version 2.8.0 (build 2.8.0-dev.14.0 eb9c26bd37)

 
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/hsnbsst/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-29, build-tools 29.0.2
    • ANDROID_HOME = /Users/hsnbsst/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.0.beta.2

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

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] IntelliJ IDEA Ultimate Edition (version 2019.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 40.1.4
    • Dart plugin version 192.6817.14

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

[✓] Connected device (3 available)
    • Android SDK built for x86 • emulator-5554 • android-x86    • Android 10 (API 29) (emulator)
    • Chrome                    • chrome        • web-javascript • Google Chrome 80.0.3987.149
    • Web Server                • web-server    • web-javascript • Flutter Tools

• No issues found!

Plugin version
Example: 0.3.5+1

@hsnbsst hsnbsst added the wait confirm Waiting for developer confirmation label Apr 3, 2020
@Wisdozzh
Copy link

他里面提供了方法

controller.setNetworkDataSource(url, autoPlay: true, headers: {'host': ' 127.0.0.1'})

但是注意的是,header的value值前面必须添加一个空格才可以
在ijkplayer里面也是相同的解决方案
bilibili/ijkplayer#4946
bilibili/ijkplayer#3693
bilibili/ijkplayer#2648

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait confirm Waiting for developer confirmation
Projects
None yet
Development

No branches or pull requests

2 participants