### Godot version

v4.1.stable.official [970459615]
EDIT: Also v4.1.1.stable.official [bd6af8e0e]

### System information

Godot v4.1.stable - Windows 10.0.19045 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1060 6GB (NVIDIA; 31.0.15.3640) - Intel(R) Core(TM) i5-7400 CPU @ 3.00GHz (4 Threads)

### Issue description

Using HTTPRequest `request()` on a Web export with `accept_gzip = false` on an API that can use compression results in a RESULT_CANT_CONNECT error `[2, 0, [], []]`. This does not happen on any other export nor can I find a reason for it to fail as the API in question can also return uncompressed data if the `Accept-Encoding` header is not used.

### Steps to reproduce

```
var http:HTTPRequest = HTTPRequest.new()
add_child(http)
http.accept_gzip = false
http.request("https://dev.playkantti.fi/ok.php")
var result = await http.request_completed
print(result)
```
The result of this code will be normal on every export except on Web where it will be `[2, 0, [], []]`. You can also use the project and web export below to try it out. It's a bit more visual than the code above.

### Minimal reproduction project

Web export: https://dev.playkantti.fi/
Project: [NetworkTest.zip](https://github.com/godotengine/godot/files/12013294/NetworkTest.zip)

#ifndef HTTP_CLIENT_WEB_H
#define HTTP_CLIENT_WEB_H
#include "core/io/http_client.h"
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
typedef enum {
	GODOT_JS_FETCH_STATE_REQUESTING = 0,
	GODOT_JS_FETCH_STATE_BODY = 1,
	GODOT_JS_FETCH_STATE_DONE = 2,
	GODOT_JS_FETCH_STATE_ERROR = -1,
} godot_js_fetch_state_t;
extern int godot_js_fetch_create(const char *p_method, const char *p_url, const char **p_headers, int p_headers_len, const uint8_t *p_body, int p_body_len);
extern int godot_js_fetch_read_headers(int p_id, void (*parse_callback)(int p_size, const char **p_headers, void *p_ref), void *p_ref);
extern int godot_js_fetch_read_chunk(int p_id, uint8_t *p_buf, int p_buf_size);
extern void godot_js_fetch_free(int p_id);
extern godot_js_fetch_state_t godot_js_fetch_state_get(int p_id);
extern int godot_js_fetch_body_length_get(int p_id);
extern int godot_js_fetch_http_status_get(int p_id);
extern int godot_js_fetch_is_chunked(int p_id);
#ifdef __cplusplus
}
#endif
class HTTPClientWeb : public HTTPClient {
private:
	int js_id = 0;
	Status status = STATUS_DISCONNECTED;
	
	int read_limit = 65536;
	String host;
	int port = -1;
	bool use_tls = false;
	int polled_response_code = 0;
	Vector<String> response_headers;
	Vector<uint8_t> response_buffer;
#ifdef DEBUG_ENABLED
	uint64_t last_polling_frame = 0;
#endif
	static void _parse_headers(int p_len, const char **p_headers, void *p_ref);
public:
	static HTTPClient *_create_func();
	Error request(Method p_method, const String &p_url, const Vector<String> &p_headers, const uint8_t *p_body, int p_body_size) override;
	Error connect_to_host(const String &p_host, int p_port = -1, Ref<TLSOptions> p_tls_options = Ref<TLSOptions>()) override;
	void set_connection(const Ref<StreamPeer> &p_connection) override;
	Ref<StreamPeer> get_connection() const override;
	void close() override;
	Status get_status() const override;
	bool has_response() const override;
	bool is_response_chunked() const override;
	int get_response_code() con