HTTPSocket PageHeaders nil, but it isn't nil in the debugger

So I am coding a HTTPSocket/HTTPSecureSocket subclass (to add redirects, cookie handling, and other stuff), and something strange is happening. PageHeaders is nil , and throws a NilObjectException, but via the debugger PageHeaders is not nil, and I can even access the values. The site isn’t blocked, and is accessed normally (so, PageHeaders isn’t nil for sure).


I have tried RS 2012r2 and Xojo 2013r2 (can’t use Xojo 2014, since the app is accessing the UI via threads, and it just wouldn’t run)

Any ideas? Is this a bug?