Fixed method for update HTTP context