01.05.2015, 21:35
Hello,
Today I discovered something which looks like a SA-MP bug to the HTTP function. If I specify an "url" which has a redirect (in my case it was a "Moved Permanently" redirect) the "callback" will be called with response_code 301 ("Moved Permanently") and then the server will hang and then crash (I guess this happens also for the "temporary moved" address redirection, maybe others too). I specified a main domain address ("http://www.example.com") which had a redirect, not something like a subdomain with a redirect ("http://subdomain.example.com").
Can somebody confirm this ? I know that this is not an important bug, but still, it's a bug. It can be simply fixed by users by specifying another "url", but it should send a message in console that the "url" is not ok, or having it simply not crashing, or something like that.
Today I discovered something which looks like a SA-MP bug to the HTTP function. If I specify an "url" which has a redirect (in my case it was a "Moved Permanently" redirect) the "callback" will be called with response_code 301 ("Moved Permanently") and then the server will hang and then crash (I guess this happens also for the "temporary moved" address redirection, maybe others too). I specified a main domain address ("http://www.example.com") which had a redirect, not something like a subdomain with a redirect ("http://subdomain.example.com").
Can somebody confirm this ? I know that this is not an important bug, but still, it's a bug. It can be simply fixed by users by specifying another "url", but it should send a message in console that the "url" is not ok, or having it simply not crashing, or something like that.