You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What did you do? If possible, provide a simple script for reproducing the error.
I have a javascript file already compressed using brotli at build time, I need to send it as a response with Content-Type: application/javascript, Content-Encoding: br.
consider test.js.br.zip which contains test.js.br inside just as an example.
What did you expect to see?
using curl -i --http2-prior-knowledge http://server:950 I would expect to see this output:
HTTP/2 200
content-type: application/javascript
content-encoding: br
server: swoole-http-server
date: Mon, 15 Nov 2021 20:41:13 GMT
content-length: 53685
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
What did you see instead?
HTTP/2 200
content-type: application/octet-stream
content-encoding: br
server: swoole-http-server
date: Mon, 15 Nov 2021 20:41:13 GMT
content-length: 53685
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.
What version of Swoole are you using (show your php --ri swoole)?
swoole
Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.8.1
Built => Nov 14 2021 09:07:25
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1l 24 Aug 2021
dtls => enabled
http2 => enabled
pcre => enabled
zlib => 1.2.11
brotli => E16777225/D16777225
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608
What is your machine environment used (show your uname -a & php -v & gcc -v) ?
uname -a: Linux 7607e75ef1a9 5.14.16-arch1-1 #1 SMP PREEMPT Tue, 02 Nov 2021 22:22:59 +0000 x86_64 GNU/Linux(Arch Linux x64)
php -v: 8.0.12
gcc -v: 11.1.0
The text was updated successfully, but these errors were encountered:
I have a javascript file already compressed using brotli at build time, I need to send it as a response with Content-Type: application/javascript, Content-Encoding: br.
This is the script I'm using:
consider
test.js.br.zip which contains test.js.br inside just as an example.
using
curl -i --http2-prior-knowledge http://server:950
I would expect to see this output:php --ri swoole
)?uname -a
&php -v
&gcc -v
) ?uname -a:
Linux 7607e75ef1a9 5.14.16-arch1-1 #1 SMP PREEMPT Tue, 02 Nov 2021 22:22:59 +0000 x86_64 GNU/Linux
(Arch Linux x64)php -v: 8.0.12
gcc -v: 11.1.0
The text was updated successfully, but these errors were encountered: