How to make payaramicro support http/1.1 RFC-7233 http range response ?

17 views
Skip to first unread message

Kanail Laurent

unread,
Nov 22, 2019, 6:59:25 AM11/22/19
to Payara Forum

Hi! My webapp running on Payara-Micro is a tool to listen to audio files and navigate freely through them using the javascript currentTime property. So the browser has <audio src="..."> tags and to get the audio file, it sends http GET request to the server with the header Range: bytes=0- Unfortunately Payara in response doesn't returns 206 code and Content-range: bytes 0-881403 but it returns 200 and this has the effect that when I use currentTime=10 for exemple, the currentTime becomes equal to 0!

Previously this app was running in PHP with an apache server and apache was supporting the rangeheader. Is it possible to configure PayaraMicro or Grizzly to support range request ? I have tryed to put an apache server in front of PayaraMicro but no success.


Thank you for your help, payaramicro is great!

Kanail Laurent

unread,
Nov 28, 2019, 2:55:24 AM11/28/19
to Payara Forum
Payara supports RFC-7233. I did a mistake: there was a filter somewhere that removed the default response header for media files.
Subject closed!
Reply all
Reply to author
Forward
0 new messages