juce-framework / JUCE

JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
https://juce.com
Other
6.31k stars 1.67k forks source link

WebBrowserComponent: Fix adding custom HTTP headers on Linux #1341

Open paulgration opened 5 months ago

paulgration commented 5 months ago

Adds the missing functionality of being able to send additional custom HTTP headers with WebBrowserComponent requests on Linux as described in the documentation.

See forum post: Juce WebBrowserComponent not sending additional HTTP headers

Example usage:

std::unique_ptr<juce::StringArray> headers = std::make_unique<juce::StringArray> (
    "Hello: World",
    "Foo: Bar"
);

webView->goToURL ("http://localhost:5000", headers.get());